Skip to content

Instantly share code, notes, and snippets.

@web-zen
Created August 30, 2009 14:39
Show Gist options
  • Select an option

  • Save web-zen/177992 to your computer and use it in GitHub Desktop.

Select an option

Save web-zen/177992 to your computer and use it in GitHub Desktop.
var handleCancel = function() {
2 this.cancel();
3 }
4 var handleSubmit = function() {
5 this.submit();
6 }
7 var myButtons = [ { text:"Submit", handler:handleSubmit, isDefault:true },
8 { text:"Cancel", handler:handleCancel } ];
9 myDialog.cfg.queueProperty("buttons", myButtons);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment