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

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

index add9fa5..a0e722d 100644 (file)
@@ -7,7 +7,7 @@
     "items": [
         {
             "listeners": {
     "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,
             },
             "background": false,
             "closable": false,
index a8c0dc5..b1efa7d 100644 (file)
@@ -36,7 +36,8 @@ Pman.Dialog.CoreAutoSavePreview = {
                     if(typeof(_this.data) != 'undefined'){
                         _this.grid.footer.onClick('first');
                     }
                     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");
                     if (!_this.grid.getSelectionModel().getSelected()) {
                         _this.source = '';
                         _this.viewPanel.setContent("Please select a version on the left");