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

Opening multiple modal Windows in firefox #11

Closed
VladimirIvanin opened this issue Jul 21, 2016 · 1 comment
Closed

Opening multiple modal Windows in firefox #11

VladimirIvanin opened this issue Jul 21, 2016 · 1 comment

Comments

@VladimirIvanin
Copy link

VladimirIvanin commented Jul 21, 2016

There was a problem with scroll lock.
The window starts to twitch.

Example

<a href="https://github.com/dolce/iziModal" class="trigger">Modal</a>
<div id="modal" class="hide">
    1
    <a href="https://github.com/dolce/iziModal" class="trigger2">Modal</a>
</div>
<div id="modal2" class="hide">
   2
    <a href="https://github.com/dolce/iziModal" class="trigger3">Modal</a>
</div>
<div id="modal3" class="hide">
  3
</div>

<script type="text/javascript">
$(document).ready(function() {
  $("#modal").iziModal();
  $(document).on('click', '.trigger', function (event) {
    event.preventDefault();
    $('#modal').iziModal('open', this); 
  });
  $("#modal2").iziModal();
  $(document).on('click', '.trigger2', function (event) {
    event.preventDefault();
    $('#modal2').iziModal('open', this);
  });
  $("#modal3").iziModal();
  $(document).on('click', '.trigger3', function (event) {
    event.preventDefault();
    $('#modal3').iziModal('open', this); 
  });
});

The ability to open multiple Windows significantly influenced the choice of this plugin.

@marcelodolza
Copy link
Owner

The modal structure of this is not intended to be open several at once. Thank you.

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