Organizational Research By

Surprising Reserch Topic

fancybox bug with trigger click


fancybox bug with trigger click  using -'javascript,jquery,fancybox'

I have to run fancybox with trigger click in my website, the problem that i discovered is that with this method if you click on elements inside the fancy box, the fancy box will close and appear again (blinks) .

i want fancybox to prevent blinking when i click on elements inside the box and when i click on those elements i don't want to see any changes, thats all :)

i created demo for this problem

http://jsfiddle.net/NhWLc/5/

<div id="a1">
  <p>Click on the box</p>
  <div class="r"></div>
</div>

$(document).ready(function() {
  $('#a1').fancybox({   
    afterClose: function() {
      console.log('closed :( ');
    }
  }).click();// or .trigger('click');
});


any idea?
    
asked Sep 15, 2015 by WalterTDKmy
0 votes
60 views



Related Hot Questions



Government Jobs Opening


...