Skip to content

Instantly share code, notes, and snippets.

@wayferer
Created February 12, 2014 20:11
Show Gist options
  • Save wayferer/8963598 to your computer and use it in GitHub Desktop.
Save wayferer/8963598 to your computer and use it in GitHub Desktop.
modal (incomplete)
//requires helpers.js
function showDialog(dialogToShow,event){
event.preventDefault ? event.preventDefault():event.returnValue=false;
zAddClass(zQ('body'),'overflowHidden');
zAddClass(zQ('.backdrop'),'displayBlock');
zAddClass(zQ('.dialog'),'displayBlock');
}
function hideDialog(event){
event.preventDefault ? event.preventDefault():event.returnValue=false;
zRemoveClass(zQ('body'),'overflowHidden');
zRemoveClass(zQ('.backdrop'),'displayBlock');
zRemoveClass(zQ('.dialog'),'displayBlock');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment