3 "name": "Pman.Dialog.CoreAutoSavePreview",
6 "path": "/home/edward/gitlive/Pman.Core/Pman.Dialog.CoreAutoSavePreview.bjs",
10 "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}"
18 "title": "Saved Version",
20 "xtype": "LayoutDialog",
25 "xtype": "LayoutRegion",
32 "xtype": "LayoutRegion",
37 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
43 "tableName": "Events",
50 "|render": "function() \n{\n _this.grid = this; \n \n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}"
53 "autoExpandColumn": "event_when",
60 "afterselectionchange": "function (_self)\n{\n var selected = this.getSelected();\n \n _this.viewPanel.load( { url : baseURL + \"/Roo/Events\", method : 'GET' }, {_id : selected.data.id, _retrieve_source : 1}, function(oElement, bSuccess, oResponse){\n \n _this.source = '';\n \n var res = Roo.decode(oResponse.responseText);\n \n if(!bSuccess || !res.success){\n _this.viewPanel.setContent(\"Load data failed?!\");\n }\n \n if(typeof(res.data) === 'string'){\n _this.viewPanel.setContent(res.data);\n return;\n }\n \n if(!_this.data.successFn){\n Roo.MessageBox.alert('Error', 'Please setup the successFn');\n return;\n }\n \n _this.source = _this.data.successFn(res);\n\n _this.viewPanel.setContent(_this.source);\n \n });\n}"
64 "xtype": "RowSelectionModel",
69 "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\n var d = Roo.apply({}, _this.data);\n delete d.successFn;\n\n Roo.apply(o.params, d);\n \n}"
71 "*prop": "dataSource",
74 "|sortInfo": "{ field : 'event_when', direction: 'DESC' }",
81 "|url": "baseURL + '/Roo/Events.php'",
88 "totalProperty": "total",
89 "xtype": "JsonReader",
90 "|fields": "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'event_when',\n 'type': 'string'\n }\n]",
99 "xtype": "PagingToolbar",
103 "*prop": "colModel[]",
104 "dataIndex": "event_when",
107 "xtype": "ColumnModel",
108 "|renderer": "function(v) { return String.format('{0}', v ? v.format('Y-m-d H:i:s') : ''); }",
117 "render": "function (_self)\n{\n _this.viewPanel = _self;\n}"
121 "fitContainer": true,
124 "xtype": "ContentPanel",
129 "|click": "function() {\n _this.dialog.hide();\n}"
131 "*prop": "buttons[]",
138 "|click": "function() {\n\n _this.dialog.hide();\n \n if (_this.callback && _this.source != '') {\n _this.callback.call(this, _this.source);\n }\n}"
140 "*prop": "buttons[]",