Skip to content

Commit

Permalink
Bug fixed with assigning events
Browse files Browse the repository at this point in the history
  • Loading branch information
dkhlystov committed Mar 13, 2018
1 parent 124c8fb commit 3dccfed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions widgets/assets/lightbox/lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ $(function() {
makeTitle($overlay, $el);

//events
$overlay.find('.close').click(hideSplash); //close
$overlay.find('.prev').click(prevClick);
$overlay.find('.next').click(nextClick);
$overlay.find('.buffer img').load(bufferLoad); //load image in buffer
$overlay.find('.close').on('click', hideSplash); //close
$overlay.find('.prev').on('click', prevClick);
$overlay.find('.next').on('click', nextClick);
$overlay.find('.buffer img').on('load', bufferLoad); //load image in buffer
$(window).bind('keydown', windowKeydown); //hot keys

//image block
Expand Down
2 changes: 1 addition & 1 deletion widgets/assets/lightbox/lightbox.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3dccfed

Please sign in to comment.