Pman.Dialog.CoreAutoSavePreview.bjs
authorEdward <edward@roojs.com>
Thu, 8 May 2014 11:02:40 +0000 (19:02 +0800)
committerEdward <edward@roojs.com>
Thu, 8 May 2014 11:02:40 +0000 (19:02 +0800)
Pman.Dialog.CoreAutoSavePreview.js

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

index c4fe230..953ac40 100644 (file)
                 },
                 {
                     "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",
index 17534c5..78f3421 100644 (file)
@@ -230,7 +230,7 @@ Pman.Dialog.CoreAutoSavePreview = {
                         
                             _this.dialog.hide();
                             
-                            if (_this.callback) {
+                            if (_this.callback && _this.source != '') {
                                 _this.callback.call(this, _this.source);
                             }
                         }