Pman.js
[Pman.Core] / Pman.Dialog.CoreProject.js
index 99e32d0..f63ff82 100644 (file)
@@ -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,17 +134,19 @@ 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') {
-           
+                  
                   return;
               }
               if (action.type =='submit') {