},
{
"listeners" : {
- "|click" : "function()\n{\n var s = [];\n s.push(_this.grid.selModel.selection.record.id);\n \n if (s.length * 1 < 1) {\n Roo.MessageBox.alert(\"Error\", \"Select a Row\");\n return;\n }\n \n var select_index = _this.grid.selModel.selection.record.selected;\n console.log(select_index);\n var d = _this.grid.ds.data(s[select_index]);\n \n Pman.Dialog.AdminEnumMerge.show(d.data, function() {\n _this.grid.footer.onClick('refresh');\n }); \n \n}\n"
+ "|click" : "function()\n{\n var s = [];\n s.push(_this.grid.selModel.selection.record.id);\n \n if (s.length * 1 < 1) {\n Roo.MessageBox.alert(\"Error\", \"Select a Row\");\n return;\n }\n console.log(_this.grid.selModel.selection.record);\n var select_index = _this.grid.selModel.selection.record;\n \n var d = _this.grid.ds.data(s[select_index]);\n \n Pman.Dialog.AdminEnumMerge.show(d.data, function() {\n _this.grid.footer.onClick('refresh');\n }); \n \n}\n"
},
"text" : "Merge Option",
"xtype" : "Button",
Roo.MessageBox.alert("Error", "Select a Row");
return;
}
+ console.log(_this.grid.selModel.selection.record);
+ var select_index = _this.grid.selModel.selection.record;
- var select_index = _this.grid.selModel.selection.record.selected;
- console.log(select_index);
var d = _this.grid.ds.data(s[select_index]);
Pman.Dialog.AdminEnumMerge.show(d.data, function() {