change to core group
authorAlan <alan@roojs.com>
Tue, 30 Nov 2021 03:47:57 +0000 (11:47 +0800)
committerAlan <alan@roojs.com>
Tue, 30 Nov 2021 03:47:57 +0000 (11:47 +0800)
Pman.Dialog.CoreProject.bjs
Pman.Dialog.CoreProject.js

index 118820e..773d1a8 100644 (file)
@@ -79,8 +79,8 @@
         "|rendered" : "function (form)\n{\n    _this.form= form;\n}\n"
        },
        "$ url" : "baseURL + '/Roo/core_project'",
-       "method" : "POST",
        "xtype" : "Form",
+       "method" : "POST",
        "style" : "margin:10px;",
        "$ xns" : "Roo.form",
        "items" : [
            "items" : [
             {
              "$ url" : "baseURL + '/Roo/core_company'",
-             "xtype" : "HttpProxy",
              "method" : "GET",
+             "xtype" : "HttpProxy",
              "$ xns" : "Roo.data",
              "* prop" : "proxy"
             },
            "* prop" : "store",
            "items" : [
             {
-             "$ url" : "baseURL + '/Roo/Groups.php'",
-             "xtype" : "HttpProxy",
+             "$ url" : "baseURL + '/Roo/core_group'",
              "method" : "GET",
+             "xtype" : "HttpProxy",
              "$ xns" : "Roo.data",
              "* prop" : "proxy"
             },
              "items" : [
               {
                "$ url" : "baseURL + '/Roo/core_person'",
-               "xtype" : "HttpProxy",
                "method" : "GET",
+               "xtype" : "HttpProxy",
                "$ xns" : "Roo.data",
                "* prop" : "proxy"
               },
index f63ff82..9be1ab0 100644 (file)
@@ -64,7 +64,7 @@ Pman.Dialog.CoreProject = {
 
   this.callback = cb;
   this.data = data;
-  this.dialog.show(this.data._el);
+  this.dialog.show.apply(this.dialog,  Array.prototype.slice.call(arguments).slice(2));
   if (this.form) {
    this.form.reset();
    this.form.setValues(data);
@@ -329,7 +329,7 @@ Pman.Dialog.CoreProject = {
            proxy : {
             xtype : 'HttpProxy',
             method : 'GET',
-            url : baseURL + '/Roo/Groups.php',
+            url : baseURL + '/Roo/core_group',
             xns : Roo.data,
             '|xns' : 'Roo.data'
            },