},
{
"listeners" : {
- "rowdblclick" : "function (_self, el, rowIndex, e)\n{\n //var s = _this.grid.grid.selModel.getSelections();\n //if (!s.length || (s.length > 1)) {\n // Roo.bootstrap.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n // return;\n //}\n if (!_this.dialog) {\n return;\n }\n //_this.dialog.show(s[0].data, function() {\n _this.dialog.show(_this.grid.grid.store.getAt(rowIndex).data, function() {\n if (_this.table) {\n _this.table.store.load({});\n }\n });\n}",
+ "rowdblclick" : "function (_self, el, rowIndex, e)\n{\n if (!_this.dialog) {\n return;\n }\n _this.dialog.show(_this.grid.grid.store.getAt(rowIndex).data, function() {\n if (_this.table) {\n _this.table.store.load({});\n }\n });\n}",
"render" : "function (_self)\n{\n _this.table = _self;\n \n \n if(_this.table.active) {\n this.footer.onClick('first');\n }\n}"
},
"String cls" : "table-fixed",
},
rowdblclick : function (_self, el, rowIndex, e)
{
- //var s = _this.grid.grid.selModel.getSelections();
- //if (!s.length || (s.length > 1)) {
- // Roo.bootstrap.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
- // return;
- //}
if (!_this.dialog) {
return;
}
- //_this.dialog.show(s[0].data, function() {
_this.dialog.show(_this.grid.grid.store.getAt(rowIndex).data, function() {
if (_this.table) {
_this.table.store.load({});