Created
June 17, 2015 14:49
-
-
Save mauricerenck/e7c0bed477ce8a9ebd6c to your computer and use it in GitHub Desktop.
[js] Prevent Page-Scrolling when in Lightbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).bind('cbox_open', function() { | |
$('html').css({ overflow: 'hidden' }); | |
}).bind('cbox_closed', function() { | |
$('html').css({ overflow: '' }); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment