Skip to content

Instantly share code, notes, and snippets.

@sudara
Forked from smoofles/gist:28510
Created November 24, 2008 16:27
Show Gist options
  • Save sudara/28514 to your computer and use it in GitHub Desktop.
Save sudara/28514 to your computer and use it in GitHub Desktop.
/* • lpl modal */
/* lepilo modal dialog */
/* include low pro for jquery, then.... */
Model = $.klass({
initialize = function() {
$('#cancel_modal').mouseup(function() {
this.cancelModal();
});
},
openModal = function(message, type) {
$('#lpl_modal').fadeIn(250);
$('#lpl_modal_dialog .content').slideDown(250);
$('#lpl_modal_dialog').slideDown(350);
},
closeModal = function() {
console.log("closeModal");
$('#lpl_modal_dialog .content').slideUp(500);
$('#lpl_modal').fadeOut(750);
},
cancelModal = function() {
this.closeModal();
}
});
$('#some_element').attach(Modal);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment