Mercurial > lada > lada-client
diff app/view/grid/Status.js @ 964:5b86baa038bc
removed delete button for messung-status
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Thu, 12 Nov 2015 12:19:02 +0100 |
parents | 6a6f2c6fe8ee |
children | a2c2039bb5d9 |
line wrap: on
line diff
--- a/app/view/grid/Status.js Thu Nov 12 12:13:31 2015 +0100 +++ b/app/view/grid/Status.js Thu Nov 12 12:19:02 2015 +0100 @@ -64,10 +64,6 @@ action: 'add', probeId: this.probeId, parentId: this.parentId - }, { - text: 'Löschen', - icon: 'resources/img/list-remove.png', - action: 'delete' }] }]; this.columns = [{ @@ -153,16 +149,6 @@ }, sortable: false, }]; - this.listeners = { - select: { - fn: this.activateRemoveButton, - scope: this - }, - deselect: { - fn: this.deactivateRemoveButton, - scope: this - } - }; this.initData(); this.callParent(arguments); this.setReadOnly(true); //Grid is always initialised as RO @@ -188,7 +174,6 @@ if (this.getPlugin('rowedit')){ this.getPlugin('rowedit').disable(); } - this.down('button[action=delete]').disable(); this.down('button[action=add]').disable(); }else{ //Writable @@ -198,25 +183,5 @@ //this.down('button[action=delete]').enable(); this.down('button[action=add]').enable(); } - }, - /** - * Activate the "Remove Button" - */ - activateRemoveButton: function(selection, record) { - var grid = this; - //only enable the remove buttone, when the grid is editable. - if (! grid.readOnly) { - grid.down('button[action=delete]').enable(); - } - }, - /** - * Deactivate the "Remove Button" - */ - deactivateRemoveButton: function(selection, record) { - var grid = this; - //only enable the remove buttone, when the grid is editable. - if (! grid.readOnly) { - grid.down('button[action=delete]').disable(); - } } });