X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Pman.Dialog.CoreProject.js;h=f63ff8258b61e51d2bd5cc5dccfd6c12c058d785;hp=a6e8e68281346fdb94f921ff9df2456034d43a0e;hb=refs%2Fheads%2Fwip_alan_T6343_generic_progress_bar_delete;hpb=90b9e2a57f7765ef9a9adac1c1b841737d6a9741 diff --git a/Pman.Dialog.CoreProject.js b/Pman.Dialog.CoreProject.js index a6e8e682..f63ff825 100644 --- a/Pman.Dialog.CoreProject.js +++ b/Pman.Dialog.CoreProject.js @@ -81,6 +81,7 @@ Pman.Dialog.CoreProject = { closable : false, collapsible : false, height : 450, + modal : true, resizable : false, title : _this._strings['ddb016a244ff2b895e69d25fb3b5f780'] /* Edit / Create Projects */, width : 470, @@ -133,22 +134,24 @@ Pman.Dialog.CoreProject = { xtype : 'Form', method : 'POST', style : 'margin:10px;', - url : baseURL + '/Roo/Projects.php', + url : baseURL + '/Roo/core_project', listeners : { actioncomplete : function(_self,action) { if (action.type == 'setdata') { //_this.dialog.el.mask("Loading"); - //this.load({ method: 'GET', params: { '_id' : _this.data.id }}); + if (_this.data.id) { + this.load({ method: 'GET', params: { '_id' : _this.data.id }}); + } return; } if (action.type == 'load') { - _this.dialog.el.unmask(); + return; } if (action.type =='submit') { - _this.dialog.el.unmask(); + _this.dialog.hide(); if (_this.callback) {