From: Edward Date: Thu, 8 May 2014 10:34:00 +0000 (+0800) Subject: Pman.Dialog.CoreAutoSavePreview.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=46abdf92770e5c95fc50346b583a72671d659ec4 Pman.Dialog.CoreAutoSavePreview.bjs Pman.Dialog.CoreAutoSavePreview.js --- diff --git a/Pman.Dialog.CoreAutoSavePreview.bjs b/Pman.Dialog.CoreAutoSavePreview.bjs index 41c3f5f7..8cf0e647 100644 --- a/Pman.Dialog.CoreAutoSavePreview.bjs +++ b/Pman.Dialog.CoreAutoSavePreview.bjs @@ -136,7 +136,7 @@ }, { "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", diff --git a/Pman.Dialog.CoreAutoSavePreview.js b/Pman.Dialog.CoreAutoSavePreview.js index 56fc947b..7e082ea5 100644 --- a/Pman.Dialog.CoreAutoSavePreview.js +++ b/Pman.Dialog.CoreAutoSavePreview.js @@ -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); } } },