Skip to content

Instantly share code, notes, and snippets.

@d30jeff
Created March 17, 2015 01:26
Show Gist options
  • Save d30jeff/708b2543c56f73fe517a to your computer and use it in GitHub Desktop.
Save d30jeff/708b2543c56f73fe517a to your computer and use it in GitHub Desktop.
dis is unpossible..!1
// Dialog.js
var widget = {
confirmDeleteButton: registry.byId('confirmDeleteButton'),
};
var func = {
onAwesome: function(evt) {
alert(1);
}
};
on(widget.confirmDeleteButton, 'click', func.onAwesome);
// End of Dialog.js
// Dialog.html
<div data-dojo-type="dijit/Dialog" data-dojo-id="confirmBox">
<p>Are you sure you want to delete this?</p>
<span class="spacer"></span>
<button id="confirmDeleteButton">Delete</button>
<button id="closeConfirmBox">Cancel</button>
</div>
// End Dialog.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment