Pman.Dialog.CoreAutoSavePreview.bjs
[Pman.Core] / Pman.Dialog.CoreAutoSavePreview.bjs
index c4fe230..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    \n    _this.source = '';\n    \n    _this.viewPanel.setContent(\"Please select a version on the left\");\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,
@@ -40,8 +40,8 @@
                     "fitContainer": true,
                     "fitToframe": true,
                     "region": "west",
-                    "tableName": "Images",
-                    "title": "Images",
+                    "tableName": "Events",
+                    "title": "Events",
                     "xtype": "GridPanel",
                     "|xns": "Roo",
                     "items": [
                 },
                 {
                     "listeners": {
-                        "|click": "function() {\n\n    _this.dialog.hide();\n    \n    if (_this.callback) {\n        _this.callback.call(this, _this.source);\n    }\n}"
+                        "|click": "function() {\n\n    _this.dialog.hide();\n    \n    if (_this.callback && _this.source != '') {\n        _this.callback.call(this, _this.source);\n    }\n}"
                     },
                     "*prop": "buttons[]",
                     "text": "OK",