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

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

index 7ebd5b9..f59bda2 100644 (file)
@@ -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'",
index 152bd61..b9a6bde 100644 (file)
@@ -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)