From: Edward Date: Thu, 8 May 2014 11:08:52 +0000 (+0800) Subject: Pman.Dialog.CoreAutoSavePreview.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=a3fe4f954bcf438a3d65fe9366b4dc0317433e15 Pman.Dialog.CoreAutoSavePreview.bjs Pman.Dialog.CoreAutoSavePreview.js --- diff --git a/Pman.Dialog.CoreAutoSavePreview.bjs b/Pman.Dialog.CoreAutoSavePreview.bjs index a0e722df..14fcf781 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 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, diff --git a/Pman.Dialog.CoreAutoSavePreview.js b/Pman.Dialog.CoreAutoSavePreview.js index b1efa7d9..a34516d7 100644 --- a/Pman.Dialog.CoreAutoSavePreview.js +++ b/Pman.Dialog.CoreAutoSavePreview.js @@ -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"); - } } },