From bbf4bab052577a544ee7ab423f2d660c7b32a0e0 Mon Sep 17 00:00:00 2001 From: Edward Date: Thu, 8 May 2014 19:07:13 +0800 Subject: [PATCH] Pman.Dialog.CoreAutoSavePreview.bjs Pman.Dialog.CoreAutoSavePreview.js --- Pman.Dialog.CoreAutoSavePreview.bjs | 2 +- Pman.Dialog.CoreAutoSavePreview.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Pman.Dialog.CoreAutoSavePreview.bjs b/Pman.Dialog.CoreAutoSavePreview.bjs index add9fa57..a0e722df 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 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 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}" }, "background": false, "closable": false, diff --git a/Pman.Dialog.CoreAutoSavePreview.js b/Pman.Dialog.CoreAutoSavePreview.js index a8c0dc57..b1efa7d9 100644 --- a/Pman.Dialog.CoreAutoSavePreview.js +++ b/Pman.Dialog.CoreAutoSavePreview.js @@ -36,7 +36,8 @@ 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"); -- 2.39.2