Skip to content

Instantly share code, notes, and snippets.

@dalmaer
Created April 11, 2011 18:57
Show Gist options
  • Save dalmaer/914057 to your computer and use it in GitHub Desktop.
Save dalmaer/914057 to your computer and use it in GitHub Desktop.
var block_clicks = function() {
var isBlocked = !blockClick;
blockClick = false;
return isBlocked;
};
// The lightbox function first does:
e = e || event;
if (e.ctrlKey || e.shiftKey ||
(e.which && (e.which === 2 || e.which === 3)) ||
(e.button && (e.button === 4 || e.button === 2)))
return;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment