Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Wrapper for createDialog
- *
- * @param has the href and the saveFunc Callback
- */
- showDialog : function(params) {
- this.createDialog({
- "href" : params.href,
- "style" : params.style ? params.style : "width: 450px"
- });
- dojo.connect(this.dlg, "onLoad", this, function() {
- dojo.connect(dojo.byId("dialog_cancel"), "onclick", dojo.hitch(this, "hideDialog"));
- if (!!params.saveFunc) {
- dojo.connect(dojo.byId("dialog_save"), "onclick", dojo.hitch(this, params.saveFunc));
- };
- });
- },
Add Comment
Please, Sign In to add comment