From: Micheal Date: Thu, 29 Jan 2015 05:33:45 +0000 (+0800) Subject: Pman.Dialog.AdminEnumType.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=aa2be906365b605c630d5768cf0bc65263d0a365 Pman.Dialog.AdminEnumType.bjs Pman.Dialog.AdminEnumType.js --- diff --git a/Pman.Dialog.AdminEnumType.bjs b/Pman.Dialog.AdminEnumType.bjs index 5253214..7ebd5b9 100644 --- a/Pman.Dialog.AdminEnumType.bjs +++ b/Pman.Dialog.AdminEnumType.bjs @@ -22,13 +22,13 @@ }, { "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", diff --git a/Pman.Dialog.AdminEnumType.js b/Pman.Dialog.AdminEnumType.js index aea4d2f..152bd61 100644 --- a/Pman.Dialog.AdminEnumType.js +++ b/Pman.Dialog.AdminEnumType.js @@ -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 : [