Guest User

Untitled

a guest
Oct 20th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. /**
  2. * Wrapper for createDialog
  3. *
  4. * @param has the href and the saveFunc Callback
  5. */
  6. showDialog : function(params) {
  7.  
  8. this.createDialog({
  9. "href" : params.href,
  10. "style" : params.style ? params.style : "width: 450px"
  11. });
  12.  
  13. dojo.connect(this.dlg, "onLoad", this, function() {
  14.  
  15. dojo.connect(dojo.byId("dialog_cancel"), "onclick", dojo.hitch(this, "hideDialog"));
  16.  
  17. if (!!params.saveFunc) {
  18.  
  19. dojo.connect(dojo.byId("dialog_save"), "onclick", dojo.hitch(this, params.saveFunc));
  20. };
  21. });
  22. },
Add Comment
Please, Sign In to add comment