Pman.Dialog.CoreAutoSavePreview.bjs
[Pman.Core] / Pman.Dialog.CoreAutoSavePreview.bjs
index e5a24c7..ccb3253 100644 (file)
@@ -33,7 +33,7 @@
                     "listeners": {
                         "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
                     },
-                    "background": true,
+                    "background": false,
                     "fitContainer": true,
                     "fitToframe": true,
                     "region": "west",
                     "|xns": "Roo",
                     "items": [
                         {
+                            "listeners": {
+                                "|render": "function() \n{\n    _this.grid = this; \n    \n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
+                                "|rowdblclick": "function (_self, rowIndex, e)\n{\n\n}\n"
+                            },
                             "*prop": "grid",
-                            "xtype": "Grid",
                             "autoExpandColumn": "filename",
                             "loadMask": true,
-                            "listeners": {
-                                "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
-                                "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n"
-                            },
+                            "xtype": "Grid",
                             "|xns": "Roo.grid",
                             "items": [
+                                {
+                                    "|xns": "Roo.grid",
+                                    "xtype": "RowSelectionModel",
+                                    "*prop": "sm"
+                                },
                                 {
                                     "*prop": "dataSource",
                                     "xtype": "Store",
                                 },
                                 {
                                     "*prop": "footer",
-                                    "xtype": "PagingToolbar",
+                                    "displayInfo": false,
                                     "pageSize": 25,
-                                    "displayInfo": true,
-                                    "displayMsg": "Displaying Images{0} - {1} of {2}",
-                                    "emptyMsg": "No Images found",
+                                    "xtype": "PagingToolbar",
                                     "|xns": "Roo"
                                 },
                                 {
+                                    "*prop": "colModel[]",
+                                    "dataIndex": "event_when",
+                                    "header": "Date",
+                                    "width": 100,
                                     "xtype": "ColumnModel",
-                                    "header": "Language",
-                                    "width": 200,
-                                    "dataIndex": "language",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid",
-                                    "*prop": "colModel[]"
-                                },
-                                {
-                                    "xtype": "ColumnModel",
-                                    "header": "Parent image",
-                                    "width": 75,
-                                    "dataIndex": "parent_image_id",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid",
-                                    "*prop": "colModel[]"
-                                },
-                                {
-                                    "xtype": "ColumnModel",
-                                    "header": "Created",
-                                    "width": 75,
-                                    "dataIndex": "created",
-                                    "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
-                                    "|xns": "Roo.grid",
-                                    "*prop": "colModel[]"
-                                },
-                                {
-                                    "xtype": "ColumnModel",
-                                    "header": "Imgtype",
-                                    "width": 200,
-                                    "dataIndex": "imgtype",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid",
-                                    "*prop": "colModel[]"
-                                },
-                                {
-                                    "xtype": "ColumnModel",
-                                    "header": "Linkurl",
-                                    "width": 200,
-                                    "dataIndex": "linkurl",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid",
-                                    "*prop": "colModel[]"
-                                },
-                                {
-                                    "xtype": "ColumnModel",
-                                    "header": "Descript",
-                                    "width": 200,
-                                    "dataIndex": "descript",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid",
-                                    "*prop": "colModel[]"
-                                },
-                                {
-                                    "xtype": "ColumnModel",
-                                    "header": "Title",
-                                    "width": 200,
-                                    "dataIndex": "title",
-                                    "|renderer": "function(v) { return String.format('{0}', v); }",
-                                    "|xns": "Roo.grid",
-                                    "*prop": "colModel[]"
+                                    "|renderer": "function(v) { return String.format('{0}', v ? v.format('Y-m-d H:i:s') : ''); }",
+                                    "|xns": "Roo.grid"
                                 }
                             ]
                         }