"items": [
{
"listeners": {
- "beforeload": "function (_self, o){\n o.params = o.params || {};\n \n var s = _this.searchBox.getValue();\n \n if(!s || !s.length){\n return;\n }\n \n o.params['search[name]'] = s;\n}\n"
+ "beforeload": "function (_self, o){\n o.params = o.params || {};\n \n var s = _this.searchBox.getValue();\n \n if(!s || !s.length){\n return;\n }\n \n o.params['search[name]'] = s;\n}\n",
+ "update": "function (_self, record, operation)\n{\n if (operation != Roo.data.Record.COMMIT) {\n return;\n }\n\n if (!record.data.metric_name.length || !record.data.metric_value.length) {\n return;\n }\n \n new Pman.Request({\n url : baseURL + '/Roo/Metric',\n method : 'POST',\n params : record.data,\n success : function(res) {\n _this.grid.footer.onClick('refresh');\n }\n });\n \n}"
},
"*prop": "dataSource",
"remoteSort": true,
}
o.params['search[name]'] = s;
+ },
+ update : function (_self, record, operation)
+ {
+ if (operation != Roo.data.Record.COMMIT) {
+ return;
+ }
+
+ if (!record.data.metric_name.length || !record.data.metric_value.length) {
+ return;
+ }
+
+ new Pman.Request({
+ url : baseURL + '/Roo/Metric',
+ method : 'POST',
+ params : record.data,
+ success : function(res) {
+ _this.grid.footer.onClick('refresh');
+ }
+ });
+
}
},
remoteSort : true,