Skip to content

Instantly share code, notes, and snippets.

@jurberg
Created April 25, 2013 02:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jurberg/5457104 to your computer and use it in GitHub Desktop.
Save jurberg/5457104 to your computer and use it in GitHub Desktop.
var TestDialog = (function($) {
var $dialog;
$(function() {
$dialog = $('#test-dialog');
$dialog.dialog({
autoOpen: false,
width: 300,
height: 200
});
});
return {
openDialog: function() {
$dialog.dialog('open');
}
};
}(jQuery));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment