Pman.Dialog.AdminEnumMerge.bjs
authorEdward <edward@roojs.com>
Fri, 28 Aug 2015 08:40:14 +0000 (16:40 +0800)
committerEdward <edward@roojs.com>
Fri, 28 Aug 2015 08:40:14 +0000 (16:40 +0800)
Pman.Dialog.AdminEnumMerge.js

Pman.Dialog.AdminEnumMerge.bjs
Pman.Dialog.AdminEnumMerge.js

index fccecef..c6a3f7c 100644 (file)
@@ -7,6 +7,7 @@
  "modOrder" : "001",
  "strings" : {
   "0b3e4317865feb6f0224397600b7cafc" : "Merge Core Enum",
+  "03e956f1dca2b4d525df03cb1899cb6f" : "Merge with",
   "ea4788705e6873b424c65e91c2846b19" : "Cancel",
   "e0aa021e21dddbd6d8cecec71e9cf564" : "OK"
  },
@@ -33,9 +34,9 @@
      "* prop" : "center"
     },
     {
+     "fitToFrame" : true,
      "background" : true,
      "region" : "center",
-     "fitToFrame" : true,
      "xtype" : "ContentPanel",
      "$ xns" : "Roo",
      "items" : [
@@ -45,8 +46,8 @@
         "|rendered" : "function (form)\n{\n   _this.form = form;\n}"
        },
        "$ url" : "baseURL + '/Roo/core_enum.php'",
-       "xtype" : "Form",
        "method" : "POST",
+       "xtype" : "Form",
        "style" : "margin: 5px",
        "$ xns" : "Roo.form",
        "items" : [
@@ -85,8 +86,8 @@
            "items" : [
             {
              "$ url" : "baseURL + '/Roo/Core_enum.php'",
-             "xtype" : "HttpProxy",
              "method" : "GET",
+             "xtype" : "HttpProxy",
              "$ xns" : "Roo.data",
              "* prop" : "proxy"
             },
index 266b08b..d806564 100644 (file)
@@ -8,6 +8,7 @@ Pman.Dialog.AdminEnumMerge = {
 
  _strings : {
   '0b3e4317865feb6f0224397600b7cafc' :"Merge Core Enum",
+  '03e956f1dca2b4d525df03cb1899cb6f' :"Merge with",
   'ea4788705e6873b424c65e91c2846b19' :"Cancel",
   'e0aa021e21dddbd6d8cecec71e9cf564' :"OK"
  },
@@ -36,72 +37,72 @@ Pman.Dialog.AdminEnumMerge = {
  {
    var _this = this;
    this.dialog = Roo.factory({
-    center : {
-     '|xns' : 'Roo',
-     titlebar : false,
-     xns : Roo,
-     xtype : 'LayoutRegion'
-    },
-    '|xns' : 'Roo',
     background : true,
     closable : false,
     collapsible : false,
     height : 150,
     modal : true,
     resizable : false,
-    title : _this._strings['0b3e4317865feb6f0224397600b7cafc'],
+    title : _this._strings['0b3e4317865feb6f0224397600b7cafc'] /* Merge Core Enum */,
     width : 400,
     xns : Roo,
+    '|xns' : 'Roo',
     xtype : 'LayoutDialog',
-    buttons : [
-      {
-       '|xns' : 'Roo',
-       text : _this._strings['ea4788705e6873b424c65e91c2846b19'],
-       xns : Roo,
-       xtype : 'Button',
-       listeners : {
-        click : function() {
-             _this.form.reset();
-             _this.dialog.hide();
-         }
-       }
-      },
-{
-       '|xns' : 'Roo',
-       text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'],
-       xns : Roo,
-       xtype : 'Button',
-       listeners : {
-        click : function() {
-         
-             
-             _this.form.doAction('submit');
-             
-         }
-       }
-      }
-    ],
     listeners : {
      show : function (_self)
       {
           _this.merge.focus();
       }
     },
-    items : [
+    center : {
+     titlebar : false,
+     xns : Roo,
+     '|xns' : 'Roo',
+     xtype : 'LayoutRegion'
+    },
+    buttons : [
+     {
+      text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
+      xns : Roo,
+      '|xns' : 'Roo',
+      xtype : 'Button',
+      listeners : {
+       click : function() {
+            _this.form.reset();
+            _this.dialog.hide();
+        }
+      }
+     },
      {
+      text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
+      xns : Roo,
       '|xns' : 'Roo',
+      xtype : 'Button',
+      listeners : {
+       click : function() {
+        
+            
+            _this.form.doAction('submit');
+            
+        }
+      }
+     }
+    ],
+    items  : [
+     {
       background : true,
       fitToFrame : true,
       region : 'center',
       xns : Roo,
+      '|xns' : 'Roo',
       xtype : 'ContentPanel',
-      items : [
+      items  : [
        {
-        '|xns' : 'Roo.form',
         method : 'POST',
         style : 'margin: 5px',
         url : baseURL + '/Roo/core_enum.php',
         xns : Roo.form,
+        '|xns' : 'Roo.form',
         xtype : 'Form',
         listeners : {
          actioncomplete : function (_self, action)
@@ -129,58 +130,12 @@ Pman.Dialog.AdminEnumMerge = {
              _this.form = form;
           }
         },
-        items : [
+        items  : [
          {
-          store : {
-           proxy : {
-            '|xns' : 'Roo.data',
-            method : 'GET',
-            url : baseURL + '/Roo/Core_enum.php',
-            xns : Roo.data,
-            xtype : 'HttpProxy'
-           },
-           reader : {
-            '|xns' : 'Roo.data',
-            fields : [
-                {
-                    "name":"id",
-                    "type":"int"
-                },
-                {
-                    "name":"display_name",
-                    "type":"string"
-                }
-            ],
-            id : 'id',
-            root : 'data',
-            totalProperty : 'total',
-            xns : Roo.data,
-            xtype : 'JsonReader'
-           },
-           '|xns' : 'Roo.data',
-           remoteSort : true,
-           sortInfo : { direction : 'ASC', field: 'display_name' },
-           xns : Roo.data,
-           xtype : 'Store',
-           listeners : {
-            beforeload : function (_self, o){
-                 o.params = o.params || {};
-                 
-                 o.params.active = 1;
-                 o.params.etype = _this.data.etype;
-                 o.params['!id'] = _this.data.id;
-             }
-           },
-           items : [
-
-           ]
-
-          },
-          '|xns' : 'Roo.form',
           alwaysQuery : true,
           displayField : 'display_name',
           editable : true,
-          fieldLabel : 'Merge with',
+          fieldLabel : _this._strings['03e956f1dca2b4d525df03cb1899cb6f'] /* Merge with */,
           forceSelection : true,
           hiddenName : '_merge_id',
           listWidth : 250,
@@ -194,6 +149,7 @@ Pman.Dialog.AdminEnumMerge = {
           valueField : 'id',
           width : 250,
           xns : Roo.form,
+          '|xns' : 'Roo.form',
           xtype : 'ComboBox',
           listeners : {
            render : function (_self)
@@ -201,25 +157,59 @@ Pman.Dialog.AdminEnumMerge = {
                 _this.merge = this;
             }
           },
-          items : [
-
-          ]
-
+          store : {
+           remoteSort : true,
+           sortInfo : { direction : 'ASC', field: 'display_name' },
+           xns : Roo.data,
+           '|xns' : 'Roo.data',
+           xtype : 'Store',
+           listeners : {
+            beforeload : function (_self, o){
+                 o.params = o.params || {};
+                 
+                 o.params.active = 1;
+                 o.params.etype = _this.data.etype;
+                 o.params['!id'] = _this.data.id;
+             }
+           },
+           proxy : {
+            method : 'GET',
+            url : baseURL + '/Roo/Core_enum.php',
+            xns : Roo.data,
+            '|xns' : 'Roo.data',
+            xtype : 'HttpProxy'
+           },
+           reader : {
+            fields : [
+                {
+                    "name":"id",
+                    "type":"int"
+                },
+                {
+                    "name":"display_name",
+                    "type":"string"
+                }
+            ],
+            id : 'id',
+            root : 'data',
+            totalProperty : 'total',
+            xns : Roo.data,
+            '|xns' : 'Roo.data',
+            xtype : 'JsonReader'
+           }
+          }
          },
          {
-          '|xns' : 'Roo.form',
           name : 'id',
           xns : Roo.form,
+          '|xns' : 'Roo.form',
           xtype : 'Hidden'
          }
         ]
-
        }
       ]
-
      }
     ]
-
    });
  }
 };