1fmpia
Last Updated: July 05, 2018
·
28.3K
· ajeliuc

Bootstrap modal (refresh)

Change line 205 to be like this

if (!data || options.refresh) $this.data('modal', (data = new Modal(this, options)))

Then when you call modal you have refresh option

$('#my-modal').modal({
    remote: url,
    refresh: true
});

And it will refresh modal data each time you click new item button

Say Thanks
Respond

4 Responses
Add your response

16107
1e8273757a9c9b8b12fc3c47a0b5815a

wouldn't this result to a memory leak?

over 1 year ago ·
28600

please i can have a exemple ?

over 1 year ago ·
28601

please a write in french because my english is very very bad

alors je commence, j'aimerais savoir pour des personnes qui utilisent la version mimifier de bootstrap tel que bootstrap.min.js, comment faire pour retrouver la ligne demander ?

over 1 year ago ·
30120

Hi
I used this script but not working.
In my site there is lots of popup.I open this popup dynamically.
When i open this popup next time i want to refresh popup without refresh my page.

Please give me an urgent reply
Thank you

13 days ago ·