Last Updated: March 21, 2023
·
74.36K
· 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

4 Responses
Add your response

wouldn't this result to a memory leak?

over 1 year ago ·

please i can have a exemple ?

over 1 year ago ·

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 ·

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

over 1 year ago ·