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

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

index a0e722d..14fcf78 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    Roo.log('call show?');\n    Roo.log(_this.grid.getSelectionModel().getSelected());\n    if (!_this.grid.getSelectionModel().getSelected()) {\n        _this.source = '';\n        _this.viewPanel.setContent(\"Please select a version on the left\");\n    }\n    \n}"
+                "show": "function (_self)\n{\n    if(typeof(_this.data) != 'undefined'){\n        _this.grid.footer.onClick('first');\n    }\n    \n}"
             },
             "background": false,
             "closable": false,
index b1efa7d..a34516d 100644 (file)
@@ -36,12 +36,6 @@ Pman.Dialog.CoreAutoSavePreview = {
                     if(typeof(_this.data) != 'undefined'){
                         _this.grid.footer.onClick('first');
                     }
-                    Roo.log('call show?');
-                    Roo.log(_this.grid.getSelectionModel().getSelected());
-                    if (!_this.grid.getSelectionModel().getSelected()) {
-                        _this.source = '';
-                        _this.viewPanel.setContent("Please select a version on the left");
-                    }
                     
                 }
             },