2 "name" : "Pman.Dialog.CoreAutoSavePreview",
5 "path" : "/home/alan/gitlive/Pman.Core/Pman.Dialog.CoreAutoSavePreview.bjs",
9 "87f9f735a1d36793ceaecd4e47124b63" : "Events",
10 "ea4788705e6873b424c65e91c2846b19" : "Cancel",
11 "bd88a20b53a47f7b5704a83a15ff5506" : "Saved Version",
12 "44749712dbec183e983dcd78a7736c41" : "Date",
13 "e0aa021e21dddbd6d8cecec71e9cf564" : "OK"
18 "show" : "function (_self)\n{\n if(typeof(_this.data) != 'undefined'){\n _this.grid.footer.onClick('first');\n }\n \n}"
21 "collapsible" : false,
23 "title" : "Saved Version",
24 "xtype" : "LayoutDialog",
32 "xtype" : "LayoutRegion",
37 "xtype" : "LayoutRegion",
45 "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
51 "xtype" : "GridPanel",
52 "fitContainer" : true,
54 "tableName" : "Events",
58 "|render" : "function() \n{\n _this.grid = this; \n \n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}"
60 "autoExpandColumn" : "event_when",
68 "afterselectionchange" : "function (_self)\n{\n var selected = this.getSelected();\n \n _this.source = '';\n \n if(!selected){\n _this.viewPanel.setContent(\"Please select an saved version on the left\"); \n return;\n }\n \n _this.viewPanel.load( { url : baseURL + \"/Roo/Events\", method : 'GET' }, {_id : selected.data.id, _retrieve_source : 1}, function(oElement, bSuccess, oResponse){\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}"
70 "xtype" : "RowSelectionModel",
71 "singleSelect" : true,
77 "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}",
78 "load" : "function (_self, records, options)\n{\n var sm = _this.grid.getSelectionModel();\n if (!sm.getSelections().length) {\n sm.selectFirstRow();\n \n sm.fireEvent('afterselectionchange', sm);\n }\n}"
82 "$ sortInfo" : "{ field : 'event_when', direction: 'DESC' }",
84 "* prop" : "dataSource",
87 "$ url" : "baseURL + '/Roo/Events.php'",
88 "xtype" : "HttpProxy",
96 "xtype" : "JsonReader",
97 "$ fields" : "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'event_when',\n 'type': 'string'\n }\n]",
100 "totalProperty" : "total"
106 "xtype" : "PagingToolbar",
108 "displayInfo" : false,
112 "xtype" : "ColumnModel",
115 "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('Y-m-d H:i:s') : ''); }",
116 "$ xns" : "Roo.grid",
117 "* prop" : "colModel[]",
118 "dataIndex" : "event_when"
121 "xtype" : "ColumnModel",
124 "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('Y-m-d H:i:s') : ''); }",
125 "$ xns" : "Roo.grid",
126 "* prop" : "colModel[]",
127 "dataIndex" : "event_when"
135 "render" : "function (_self)\n{\n _this.viewPanel = _self;\n}"
138 "background" : false,
141 "xtype" : "ContentPanel",
142 "fitContainer" : true,
147 "|click" : "function() {\n _this.dialog.hide();\n}"
152 "* prop" : "buttons[]"
156 "|click" : "function() {\n\n _this.dialog.hide();\n \n if (_this.callback && _this.source != '') {\n _this.callback.call(this, _this.source);\n }\n}"
161 "* prop" : "buttons[]"