Walter Davis wrote in post #1182728:

> Here's what I use in Bootstrap 3 to work around this:
>
> $(document).on('page:change', function(){
>   // shims for the Bootstrap Modal, which is bloody-minded about caching
> content per modal
>   $(document).on('click', '#reusable_modal [data-dismiss="modal"]',
> function (e) {
>     $(e.target).removeData('bs.modal');
>     $('#reusable_modal .modal-content').empty();
>   });
>   $(document).on('click', '[data-target="#reusable_modal"]', function(e)
> {
>     $("#reusable_modal .modal-content").load($(this).attr("href"));
>   });
> });
>
> Walter

Where should I place id="reusable_modal"? modal-content is already set. 
Thanks.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/73a6d75ab960de709c34b1d17c27bf30%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to