From 08d39cd8268da5cdf512dad73d972fdb47232eae Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 8 May 2014 19:02:40 +0800 Subject: [PATCH] Pman.Dialog.CoreAutoSavePreview.bjs Pman.Dialog.CoreAutoSavePreview.js --- Pman.Dialog.CoreAutoSavePreview.bjs | 2 +- Pman.Dialog.CoreAutoSavePreview.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Pman.Dialog.CoreAutoSavePreview.bjs b/Pman.Dialog.CoreAutoSavePreview.bjs index c4fe2305..953ac400 100644 --- a/Pman.Dialog.CoreAutoSavePreview.bjs +++ b/Pman.Dialog.CoreAutoSavePreview.bjs @@ -135,7 +135,7 @@ }, { "listeners": { - "|click": "function() {\n\n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(this, _this.source);\n }\n}" + "|click": "function() {\n\n _this.dialog.hide();\n \n if (_this.callback && _this.source != '') {\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 17534c57..78f34210 100644 --- a/Pman.Dialog.CoreAutoSavePreview.js +++ b/Pman.Dialog.CoreAutoSavePreview.js @@ -230,7 +230,7 @@ Pman.Dialog.CoreAutoSavePreview = { _this.dialog.hide(); - if (_this.callback) { + if (_this.callback && _this.source != '') { _this.callback.call(this, _this.source); } } -- 2.39.2