Skip to content

Instantly share code, notes, and snippets.

@hobodave
Created March 6, 2012 19:33
Show Gist options
  • Save hobodave/1988526 to your computer and use it in GitHub Desktop.
Save hobodave/1988526 to your computer and use it in GitHub Desktop.
(function($) {
$(function() {
$(document).on('click', 'a.dialog_trigger', function(event) {
$($(this).attr('href')).modal({persist: true, opacity: 80});
return false;
});
$(document).on('click', 'a.dialog_close', function(event) {
$.modal.close();
return false;
});
$('.hidden_dialog').hide();
$('.tabs').tabs();
});
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment