BUG 9340 Button cancel then it only cancel the editing SOLVED
- I add to delete row to button cancel
This commit is contained in:
@@ -284,7 +284,14 @@ Ext.onReady(function(){
|
|||||||
});
|
});
|
||||||
//row editor for table columns grid
|
//row editor for table columns grid
|
||||||
editor = new Ext.ux.grid.RowEditor({
|
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({
|
editor.on({
|
||||||
|
|||||||
@@ -384,7 +384,14 @@ Ext.onReady(function(){
|
|||||||
});
|
});
|
||||||
//row editor for table columns grid
|
//row editor for table columns grid
|
||||||
editor = new Ext.ux.grid.RowEditor({
|
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({
|
editor.on({
|
||||||
|
|||||||
Reference in New Issue
Block a user