"path": "/home/edward/gitlive/Pman.Core/Pman.Dialog.CoreAutoSavePreview.bjs",
"items": [
{
+ "listeners": {
+ "show": "function (_self)\n{\n if(typeof(_this.data) != 'undefined'){\n _this.grid.footer.onClick('first');\n }\n}"
+ },
"background": false,
"closable": false,
"collapsible": false,
"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": [
{
+ "listeners": {
+ "afterselectionchange": "function (_self)\n{\n var selected = this.getSelected();\n \n if (!selected) {\n _this.viewPanel.setContent(\"Nothing Selected\");\n return;\n }\n Roo.log(selected);\n _this.viewPanel.setContent(\"Data Selected\");\n}"
+ },
+ "*prop": "sm",
+ "singleSelect": true,
+ "xtype": "RowSelectionModel",
+ "|xns": "Roo.grid"
+ },
+ {
+ "listeners": {
+ "beforeload": "function (_self, o)\n{\n o.params = o.params || {};\n \n if(typeof(_this.data) == 'undefined'){\n this.removeAll();\n return false;\n }\n Roo.log(_this.data);\n o.params.action = 'AUTOSAVE';\n}"
+ },
"*prop": "dataSource",
- "xtype": "Store",
"remoteSort": true,
+ "xtype": "Store",
"|sortInfo": "{ field : 'filename', direction: 'ASC' }",
"|xns": "Roo.data",
"items": [
},
{
"*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": "Width",
- "width": 75,
- "dataIndex": "width",
- "|renderer": "function(v) { return String.format('{0}', v); }",
- "|xns": "Roo.grid",
- "*prop": "colModel[]"
- },
- {
- "xtype": "ColumnModel",
- "header": "Height",
- "width": 75,
- "dataIndex": "height",
- "|renderer": "function(v) { return String.format('{0}', v); }",
- "|xns": "Roo.grid",
- "*prop": "colModel[]"
- },
- {
- "xtype": "ColumnModel",
- "header": "Filesize",
- "width": 75,
- "dataIndex": "filesize",
- "|renderer": "function(v) { return String.format('{0}', v); }",
- "|xns": "Roo.grid",
- "*prop": "colModel[]"
- },
- {
- "xtype": "ColumnModel",
- "header": "Displayorder",
- "width": 75,
- "dataIndex": "displayorder",
- "|renderer": "function(v) { return String.format('{0}', v); }",
- "|xns": "Roo.grid",
- "*prop": "colModel[]"
- },
- {
- "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"
}
]
}