Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal Remote holds cache of first GET and ignore others requests #11029

Closed
thiagolunardi opened this issue Oct 10, 2013 · 3 comments
Closed

Modal Remote holds cache of first GET and ignore others requests #11029

thiagolunardi opened this issue Oct 10, 2013 · 3 comments

Comments

@thiagolunardi
Copy link

I needed to alter Bootstrap.js at line 1032 to stop checking for previous data when using Modal Remote, like this:
/if (!data)/ $this.data('bs.modal', (data = new Modal(this, options)))

The case below, the modal will Always show the first request contente only, and ignore others request:
Item 1
Item 2
Item 3

@thiagolunardi
Copy link
Author

I needed to alter Bootstrap.js at line 1032 to stop checking for previous data when using Modal Remote, like this:
/if (!data)/ $this.data('bs.modal', (data = new Modal(this, options)))

The case below, the modal will Always show the first request contente only, and ignore others request:
<a data-toggle="modal" data-target="myModal" href="/Item/1">Item 1</a>
<a data-toggle="modal" data-target="myModal" href="/Item/2">Item 2</a>
<a data-toggle="modal" data-target="myModal" href="/Item/3">Item 3</a>
<div class="modal fade" id="myModal"></div></textarea>

@cvrebert
Copy link
Collaborator

See #7935.

@cvrebert
Copy link
Collaborator

To be frank, I don't recommend using the remote feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants