Pman.Dialog.AdminEnumType.bjs
authorMicheal <micheal@roojs.com>
Thu, 29 Jan 2015 05:33:45 +0000 (13:33 +0800)
committerMicheal <micheal@roojs.com>
Thu, 29 Jan 2015 05:33:45 +0000 (13:33 +0800)
Pman.Dialog.AdminEnumType.js

Pman.Dialog.AdminEnumType.bjs
Pman.Dialog.AdminEnumType.js

index 5253214..7ebd5b9 100644 (file)
                 },
                 {
                     "xtype" : "ContentPanel",
-                    "String region" : "center",
                     "$ xns" : "Roo",
+                    "String region" : "center",
                     "items" : [
                         {
                             "listeners" : {
-                                "rendered" : "function (form)\n{\n    _this.form = this;\n}",
-                                "|actioncomplete" : "function (_self, action)\n{\n    if(action.type == 'submit'){\n        _this.dialog.hide();\n    }\n}"
+                                "|actioncomplete" : "function (_self, action)\n{\n    if(action.type == 'submit'){\n        _this.dialog.hide();\n    }\n}",
+                                "rendered" : "function (form)\n{\n    _this.form = this;\n}"
                             },
                             "$ url" : "baseURL + '/Roo/Core_enum'",
                             "xtype" : "Form",
index aea4d2f..152bd61 100644 (file)
@@ -76,8 +76,8 @@ Pman.Dialog.AdminEnumType = {
                {
                     '|xns' : 'Roo',
                     xtype : 'ContentPanel',
-                    region : 'center',
                     xns : Roo,
+                    region : 'center',
                     items : [
                        {
                             '|xns' : 'Roo.form',
@@ -85,15 +85,15 @@ Pman.Dialog.AdminEnumType = {
                             xtype : 'Form',
                             xns : Roo.form,
                             listeners : {
-                               rendered : function (form)
-                                  {
-                                      _this.form = this;
-                                  },
                                actioncomplete : function (_self, action)
                                   {
                                       if(action.type == 'submit'){
                                           _this.dialog.hide();
                                       }
+                                  },
+                               rendered : function (form)
+                                  {
+                                      _this.form = this;
                                   }
                             },
                             items : [