Pman.Dialog.CoreAutoSavePreview.bjs
[Pman.Core] / Pman.Dialog.CoreAutoSavePreview.bjs
index 90a4532..8c68dd7 100644 (file)
@@ -1,5 +1,5 @@
 {
-    "id": "roo-file-348",
+    "id": "roo-file-208",
     "name": "Pman.Dialog.CoreAutoSavePreview",
     "parent": "",
     "title": "",
@@ -25,7 +25,7 @@
                 {
                     "*prop": "west",
                     "split": true,
-                    "width": 300,
+                    "width": 200,
                     "xtype": "LayoutRegion",
                     "|xns": "Roo"
                 },
                                 "|render": "function() { \n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}"
                             },
                             "*prop": "grid",
-                            "autoExpandColumn": "remarks",
+                            "autoExpandColumn": "event_when",
                             "loadMask": true,
                             "xtype": "Grid",
                             "|xns": "Roo.grid",
                             "items": [
                                 {
                                     "listeners": {
-                                        "afterselectionchange": "function (_self)\n{\n    // load detail log in _this.viewPanel;\n    if (!this.getSelected()) {\n        this.viewPanel.setContent(\"Nothing Selected\");\n        return;\n    }\n    var id = this.getSelected().data.id;\n    _this.viewPanel.load( { url : baseURL + \"/Admin/EventView/\" + id + \".html\" });\n    \n}"
+                                        "afterselectionchange": "function (_self)\n{\n    \n    if (!this.getSelected()) {\n        this.viewPanel.setContent(\"Nothing Selected\");\n        return;\n    }\n    \n    this.viewPanel.setContent(\"data\");\n}"
                                     },
                                     "*prop": "sm",
                                     "singleSelect": true,
                                     "xtype": "ColumnModel",
                                     "|renderer": "function(v) { return v ? v.dateFormat('d/m/Y H:i') : ''; }",
                                     "|xns": "Roo.grid"
-                                },
-                                {
-                                    "*prop": "colModel[]",
-                                    "dataIndex": "on_table",
-                                    "header": "Affected",
-                                    "width": 100,
-                                    "xtype": "ColumnModel",
-                                    "|renderer": "function(v) {                     \n    return String.format('{0})', v ? v : '');  \n}",
-                                    "|xns": "Roo.grid"
                                 }
                             ]
                         }
                     ]
                 },
                 {
-                    "|xns": "Roo",
-                    "xtype": "ContentPanel"
+                    "listeners": {
+                        "render": "function (_self)\n{\n    _this.viewPanel = _self;\n}"
+                    },
+                    "background": false,
+                    "fitContainer": true,
+                    "fitToFrame": true,
+                    "region": "center",
+                    "xtype": "ContentPanel",
+                    "|xns": "Roo"
                 },
                 {
                     "listeners": {