Pman.Dialog.CoreAutoSavePreview.bjs
authorEdward <edward@roojs.com>
Thu, 8 May 2014 10:33:45 +0000 (18:33 +0800)
committerEdward <edward@roojs.com>
Thu, 8 May 2014 10:33:45 +0000 (18:33 +0800)
Pman.Dialog.CoreAutoSavePreview.js

Pman.Dialog.CoreAutoSavePreview.bjs
Pman.Dialog.CoreAutoSavePreview.js

index 674e55c..41c3f5f 100644 (file)
                 },
                 {
                     "listeners": {
-                        "|click": "function() {\n\n    _this.dialog.hide();\n    \n\n}"
+                        "|click": "function() {\n\n    _this.dialog.hide();\n    \n    if (_this.callback) {\n        _this.callback.call(this, act.result.data);\n    }\n}"
                     },
                     "*prop": "buttons[]",
                     "text": "OK",
index 92d3b1f..56fc947 100644 (file)
@@ -223,7 +223,9 @@ Pman.Dialog.CoreAutoSavePreview = {
                         
                             _this.dialog.hide();
                             
-                        
+                            if (_this.callback) {
+                                _this.callback.call(this, act.result.data);
+                            }
                         }
                     },
                     text : "OK"