Pman.Dialog.CoreAutoSavePreview.bjs
authorEdward <edward@roojs.com>
Thu, 8 May 2014 10:59:44 +0000 (18:59 +0800)
committerEdward <edward@roojs.com>
Thu, 8 May 2014 10:59:44 +0000 (18:59 +0800)
Pman.Dialog.CoreAutoSavePreview.js

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

index 8aae910..068c758 100644 (file)
@@ -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,
index 2249792..14918f0 100644 (file)
@@ -37,6 +37,10 @@ Pman.Dialog.CoreAutoSavePreview = {
                         _this.grid.footer.onClick('first');
                     }
                     
+                    _this.source = '';
+                    
+                    _this.viewPanel.setContent("");
+                    
                 }
             },
             background : false,