2 "name" : "Pman.Dialog.CoreAutoSavePreview",
5 "path" : "/home/alan/gitlive/Pman.Core/Pman.Dialog.CoreAutoSavePreview.bjs",
9 "53e5aa2c97fef1555d2511de8218c544" : "By",
10 "87f9f735a1d36793ceaecd4e47124b63" : "Events",
11 "ea4788705e6873b424c65e91c2846b19" : "Cancel",
12 "bd88a20b53a47f7b5704a83a15ff5506" : "Saved Version",
13 "44749712dbec183e983dcd78a7736c41" : "Date",
14 "e0aa021e21dddbd6d8cecec71e9cf564" : "OK"
19 "show" : "function (_self)\n{\n if(typeof(_this.data) != 'undefined'){\n _this.grid.footer.onClick('first');\n }\n \n}"
22 "collapsible" : false,
24 "title" : "Saved Version",
25 "xtype" : "LayoutDialog",
33 "xtype" : "LayoutRegion",
38 "xtype" : "LayoutRegion",
46 "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
52 "xtype" : "GridPanel",
53 "fitContainer" : true,
55 "tableName" : "Events",
59 "|render" : "function() \n{\n _this.grid = this; \n \n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}"
61 "autoExpandColumn" : "event_when",
69 "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}"
71 "xtype" : "RowSelectionModel",
72 "singleSelect" : true,
78 "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}",
79 "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}"
83 "$ sortInfo" : "{ field : 'event_when', direction: 'DESC' }",
85 "* prop" : "dataSource",
88 "$ url" : "baseURL + '/Roo/Events.php'",
89 "xtype" : "HttpProxy",
97 "xtype" : "JsonReader",
98 "$ fields" : "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'event_when',\n 'type': 'string'\n }\n]",
101 "totalProperty" : "total"
107 "xtype" : "PagingToolbar",
109 "displayInfo" : false,
113 "xtype" : "ColumnModel",
116 "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('Y-m-d H:i:s') : ''); }",
117 "$ xns" : "Roo.grid",
118 "* prop" : "colModel[]",
119 "dataIndex" : "event_when"
122 "xtype" : "ColumnModel",
125 "$ renderer" : "function(v) { return String.format('{0}', v ); }",
126 "$ xns" : "Roo.grid",
127 "* prop" : "colModel[]",
128 "dataIndex" : "person_id_name"
136 "render" : "function (_self)\n{\n _this.viewPanel = _self;\n}"
139 "background" : false,
142 "xtype" : "ContentPanel",
143 "fitContainer" : true,
148 "|click" : "function() {\n _this.dialog.hide();\n}"
153 "* prop" : "buttons[]"
157 "|click" : "function() {\n\n _this.dialog.hide();\n \n if (_this.callback && _this.source != '') {\n _this.callback.call(this, _this.source);\n }\n}"
162 "* prop" : "buttons[]"