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

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

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