From: Edward Date: Mon, 3 Mar 2014 08:52:52 +0000 (+0800) Subject: Pman.Dialog.CoreEnum.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=7dae28e6434baaf9052ea120d2bc001629221523 Pman.Dialog.CoreEnum.bjs Pman.Dialog.CoreEnum.js --- diff --git a/Pman.Dialog.CoreEnum.bjs b/Pman.Dialog.CoreEnum.bjs index 523e6c97..2f6e1345 100644 --- a/Pman.Dialog.CoreEnum.bjs +++ b/Pman.Dialog.CoreEnum.bjs @@ -71,13 +71,13 @@ ] }, { - "text": "Cancel", - "xtype": "Button", - "|xns": "Roo", "listeners": { "|click": "function() {\n _this.form.reset();\n _this.dialog.hide();\n}" }, - "*prop": "buttons[]" + "*prop": "buttons[]", + "text": "Cancel", + "xtype": "Button", + "|xns": "Roo" }, { "listeners": { diff --git a/Pman.Dialog.CoreEnum.js b/Pman.Dialog.CoreEnum.js index c4080b4b..418fba96 100644 --- a/Pman.Dialog.CoreEnum.js +++ b/Pman.Dialog.CoreEnum.js @@ -124,13 +124,13 @@ Pman.Dialog.CoreEnum = { { xtype: 'Button', xns: Roo, - text : "Cancel", listeners : { click : function() { _this.form.reset(); _this.dialog.hide(); } - } + }, + text : "Cancel" }, { xtype: 'Button',