X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.Dialog.CoreAutoSavePreview.bjs;h=953ac40076ed400890c015c899b8492f25140310;hb=08d39cd8268da5cdf512dad73d972fdb47232eae;hp=c4fe2305f110c05b5535209c953d09f41da32e36;hpb=7b644ec362371a8c2593d2a92f9231d38c5f6300;p=Pman.Core 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",