BUG 9340 Button cancel then it only cancel the editing SOLVED

- I add to delete row to button cancel
This commit is contained in:
Brayan Osmar Pereyra Suxo
2012-06-27 12:17:54 -04:00
parent e6ba779f85
commit 32b3fc41d4
2 changed files with 16 additions and 2 deletions

View File

@@ -284,7 +284,14 @@ Ext.onReady(function(){
});
//row editor for table columns grid
editor = new Ext.ux.grid.RowEditor({
saveText: _("ID_UPDATE")
saveText: _("ID_UPDATE"),
listeners: {
canceledit: function(grid,obj){
if ( grid.record.data.field_label == '' && grid.record.data.field_name == '') {
store.remove(grid.record);
}
}
}
});
editor.on({

View File

@@ -384,7 +384,14 @@ Ext.onReady(function(){
});
//row editor for table columns grid
editor = new Ext.ux.grid.RowEditor({
saveText: _("ID_UPDATE")
saveText: _("ID_UPDATE"),
listeners: {
canceledit: function(grid,obj){
if ( grid.record.data.field_label == '' && grid.record.data.field_name == '') {
store.remove(grid.record);
}
}
}
});
editor.on({