From 505e316e68d03997ad36b9c8c8eabe9e9a46a1cf Mon Sep 17 00:00:00 2001 From: Micheal Date: Thu, 29 Jan 2015 13:53:06 +0800 Subject: [PATCH] Pman.Dialog.AdminEnumType.bjs Pman.Dialog.AdminEnumType.js --- Pman.Dialog.AdminEnumType.bjs | 2 +- Pman.Dialog.AdminEnumType.js | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Pman.Dialog.AdminEnumType.bjs b/Pman.Dialog.AdminEnumType.bjs index 7ebd5b9..f59bda2 100644 --- a/Pman.Dialog.AdminEnumType.bjs +++ b/Pman.Dialog.AdminEnumType.bjs @@ -27,7 +27,7 @@ "items" : [ { "listeners" : { - "|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 if(_this.callback){\n _this.callback.call(_this, _this.form.getValues());\n }\n return\n }\n}", "rendered" : "function (form)\n{\n _this.form = this;\n}" }, "$ url" : "baseURL + '/Roo/Core_enum'", diff --git a/Pman.Dialog.AdminEnumType.js b/Pman.Dialog.AdminEnumType.js index 152bd61..b9a6bde 100644 --- a/Pman.Dialog.AdminEnumType.js +++ b/Pman.Dialog.AdminEnumType.js @@ -89,6 +89,11 @@ Pman.Dialog.AdminEnumType = { { if(action.type == 'submit'){ _this.dialog.hide(); + + if(_this.callback){ + _this.callback.call(_this, _this.form.getValues()); + } + return } }, rendered : function (form) -- 2.39.2