Mercurial > lada > lada-client
diff app/view/grid/Probenzusatzwert.js @ 703:9ab7b1eed9f8
Rowediting is now disabled when the Grid was set to ReadOnly
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Fri, 27 Mar 2015 11:03:10 +0100 |
parents | 0c8e689f3bcb |
children | 7f11b75e0188 |
line wrap: on
line diff
--- a/app/view/grid/Probenzusatzwert.js Fri Mar 27 10:20:22 2015 +0100 +++ b/app/view/grid/Probenzusatzwert.js Fri Mar 27 11:03:10 2015 +0100 @@ -30,6 +30,7 @@ this.rowEditing = Ext.create('Ext.grid.plugin.RowEditing', { clicksToMoveEditor: 1, autoCancel: false, + disabled: false, pluginId: 'rowedit', listeners:{ // Make row ineditable when readonly is set to true @@ -38,7 +39,7 @@ beforeedit: function(e, o) { var readonlywin = o.grid.up('window').record.get('readonly'); var readonlygrid = o.record.get('readonly'); - if (readonlywin == true || readonlygrid == true) { + if (readonlywin == true || readonlygrid == true || this.disabled) { return false; } return true;