> On Apr 10, 2016, at 12:18 PM, David Williams <lists@ruby-forum.com> wrote:
>
> 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.
I put that as the id of the modal itself.
Walter
>
> --
> 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 rubyonrails-talk+unsubscribe@googlegroups.com.
> To post to this group, send email to rubyonrails-talk@googlegroups.com.
> 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.
--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/80A94C5E-80AC-4484-9EC7-B6ED9897A51E%40wdstudio.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment