Mercurial > lada > lada-client
diff app/view/grid/Status.js @ 996:bf7bb9583a40
Statusworkflow: More work on the reset Button
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Fri, 08 Jan 2016 14:34:27 +0100 |
parents | 092e245b13a4 |
children | 4bbb3da88c14 |
line wrap: on
line diff
--- a/app/view/grid/Status.js Thu Jan 07 16:20:48 2016 +0100 +++ b/app/view/grid/Status.js Fri Jan 08 14:34:27 2016 +0100 @@ -185,11 +185,17 @@ if (b == true){ //Readonly this.down('button[action=add]').disable(); - this.down('button[action=reset]').disable(); }else{ //Writable this.down('button[action=add]').enable(); + } + }, + + setResetable: function(b) { + if (b == true){ this.down('button[action=reset]').enable(); + }else{ + this.down('button[action=reset]').disable(); } } });