Mercurial > lada > lada-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
995:fb424948de02 | 996:bf7bb9583a40 |
---|---|
183 | 183 |
184 setReadOnly: function(b) { | 184 setReadOnly: function(b) { |
185 if (b == true){ | 185 if (b == true){ |
186 //Readonly | 186 //Readonly |
187 this.down('button[action=add]').disable(); | 187 this.down('button[action=add]').disable(); |
188 this.down('button[action=reset]').disable(); | |
189 }else{ | 188 }else{ |
190 //Writable | 189 //Writable |
191 this.down('button[action=add]').enable(); | 190 this.down('button[action=add]').enable(); |
191 } | |
192 }, | |
193 | |
194 setResetable: function(b) { | |
195 if (b == true){ | |
192 this.down('button[action=reset]').enable(); | 196 this.down('button[action=reset]').enable(); |
197 }else{ | |
198 this.down('button[action=reset]').disable(); | |
193 } | 199 } |
194 } | 200 } |
195 }); | 201 }); |