From 42e914d033df18d0135fafa388bd80a1f0c6f033 Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 8 May 2014 18:33:45 +0800 Subject: [PATCH] Pman.Dialog.CoreAutoSavePreview.bjs Pman.Dialog.CoreAutoSavePreview.js --- Pman.Dialog.CoreAutoSavePreview.bjs | 2 +- Pman.Dialog.CoreAutoSavePreview.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Pman.Dialog.CoreAutoSavePreview.bjs b/Pman.Dialog.CoreAutoSavePreview.bjs index 674e55c8..41c3f5f7 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\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", diff --git a/Pman.Dialog.CoreAutoSavePreview.js b/Pman.Dialog.CoreAutoSavePreview.js index 92d3b1f0..56fc947b 100644 --- a/Pman.Dialog.CoreAutoSavePreview.js +++ b/Pman.Dialog.CoreAutoSavePreview.js @@ -223,7 +223,9 @@ Pman.Dialog.CoreAutoSavePreview = { _this.dialog.hide(); - + if (_this.callback) { + _this.callback.call(this, act.result.data); + } } }, text : "OK" -- 2.39.2