Created
March 17, 2015 01:26
-
-
Save d30jeff/708b2543c56f73fe517a to your computer and use it in GitHub Desktop.
dis is unpossible..!1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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