From 6239189a232a0a078d0147a10f2bc809ee226cb4 Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 8 May 2014 18:59:44 +0800 Subject: [PATCH] Pman.Dialog.CoreAutoSavePreview.bjs Pman.Dialog.CoreAutoSavePreview.js --- Pman.Dialog.CoreAutoSavePreview.bjs | 2 +- Pman.Dialog.CoreAutoSavePreview.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Pman.Dialog.CoreAutoSavePreview.bjs b/Pman.Dialog.CoreAutoSavePreview.bjs index 8aae9102..068c758b 100644 --- a/Pman.Dialog.CoreAutoSavePreview.bjs +++ b/Pman.Dialog.CoreAutoSavePreview.bjs @@ -7,7 +7,7 @@ "items": [ { "listeners": { - "show": "function (_self)\n{\n if(typeof(_this.data) != 'undefined'){\n _this.grid.footer.onClick('first');\n }\n \n}" + "show": "function (_self)\n{\n if(typeof(_this.data) != 'undefined'){\n _this.grid.footer.onClick('first');\n }\n \n _this.source = '';\n \n _this.viewPanel.setContent(\"\");\n \n}" }, "background": false, "closable": false, diff --git a/Pman.Dialog.CoreAutoSavePreview.js b/Pman.Dialog.CoreAutoSavePreview.js index 2249792c..14918f07 100644 --- a/Pman.Dialog.CoreAutoSavePreview.js +++ b/Pman.Dialog.CoreAutoSavePreview.js @@ -37,6 +37,10 @@ Pman.Dialog.CoreAutoSavePreview = { _this.grid.footer.onClick('first'); } + _this.source = ''; + + _this.viewPanel.setContent(""); + } }, background : false, -- 2.39.2