},
{
"listeners": {
- "|click": "function()\n{\n\n Pman.Dialog.XtupleSalesOrderNew.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
+ "|click": "function()\n{\n \n var nr = _this.grid.ds.reader.newRow({\n metric_id : 0,\n metric_name : '',\n metric_value : '',\n metric_module : ''\n });\n \n _this.grid.stopEditing();\n _this.grid.ds.insert(0, nr); \n _this.grid.startEditing(0, 0);\n}\n"
},
"cls": "x-btn-text-icon",
"text": "Add",
listeners : {
click : function()
{
-
- Pman.Dialog.XtupleSalesOrderNew.show( { id : 0 } , function() {
- _this.grid.footer.onClick('first');
- });
+
+ var nr = _this.grid.ds.reader.newRow({
+ metric_id : 0,
+ metric_name : '',
+ metric_value : '',
+ metric_module : ''
+ });
+
+ _this.grid.stopEditing();
+ _this.grid.ds.insert(0, nr);
+ _this.grid.startEditing(0, 0);
}
},
cls : 'x-btn-text-icon',