Pman.Dialog.BuilderAdd.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 17 Feb 2015 08:15:07 +0000 (16:15 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 17 Feb 2015 08:15:07 +0000 (16:15 +0800)
Pman.Dialog.BuilderAdd.js

Pman.Dialog.BuilderAdd.bjs
Pman.Dialog.BuilderAdd.js

index 05db2f3..258fc63 100644 (file)
@@ -8,8 +8,8 @@
  "items" : [
   {
    "modal" : true,
-   "title" : "Add Node",
    "xtype" : "LayoutDialog",
+   "title" : "Add Node",
    "width" : 400,
    "$ xns" : "Roo",
    "closable" : false,
      "items" : [
       {
        "listeners" : {
-        "actioncomplete" : "function (_self, action)\n{\n     if (action.type == 'setdata') {\n         // check if element can be templated or databased..\n         \n          \n     }\n}",
-        "rendered" : "function (form)\n{\n  _this.form  = form;\n}"
+        "rendered" : "function (form)\n{\n  _this.form  = form;\n}",
+        "actioncomplete" : "function (_self, action)\n{\n     if (action.type == 'setdata') {\n         // check if element can be templated or databased..\n         \n          \n     }\n}"
        },
        "xtype" : "Form",
        "$ xns" : "Roo.form",
        "items" : [
         {
+         "legend" : "Do you want to create the element?",
          "xtype" : "FieldSet",
          "style" : "width:350px",
-         "legend" : "Do you want to create the element ?",
          "labelWidth" : 140,
          "$ xns" : "Roo.form",
          "items" : [
@@ -68,8 +68,8 @@
              "items" : [
               {
                "$ url" : "baseURL + '/Builder/ERM.php'",
-               "xtype" : "HttpProxy",
                "method" : "GET",
+               "xtype" : "HttpProxy",
                "$ xns" : "Roo.data",
                "* prop" : "proxy"
               },
index 5137ee1..5aab5b9 100644 (file)
@@ -37,8 +37,8 @@ Pman.Dialog.BuilderAdd = {
    },
    '|xns' : 'Roo',
    modal : true,
-   title : "Add Node",
    xtype : 'LayoutDialog',
+   title : "Add Node",
    width : 400,
    xns : Roo,
    closable : false,
@@ -103,6 +103,10 @@ Pman.Dialog.BuilderAdd = {
        xtype : 'Form',
        xns : Roo.form,
        listeners : {
+        rendered : function (form)
+         {
+           _this.form  = form;
+         },
         actioncomplete : function (_self, action)
          {
               if (action.type == 'setdata') {
@@ -110,18 +114,14 @@ Pman.Dialog.BuilderAdd = {
                   
                    
               }
-         },
-        rendered : function (form)
-         {
-           _this.form  = form;
          }
        },
        items : [
         {
          '|xns' : 'Roo.form',
+         legend : "Do you want to create the element?",
          xtype : 'FieldSet',
          style : 'width:350px',
-         legend : "Do you want to create the element ?",
          labelWidth : 140,
          xns : Roo.form,
          items : [
@@ -146,8 +146,8 @@ Pman.Dialog.BuilderAdd = {
             proxy : {
              '|xns' : 'Roo.data',
              url : baseURL + '/Builder/ERM.php',
-             xtype : 'HttpProxy',
              method : 'GET',
+             xtype : 'HttpProxy',
              xns : Roo.data
             },
             reader : {