comparison app/view/grid/Status.js @ 994:092e245b13a4

draft implementation of the status-reset function: Todo: move this into a 'confirmation dialog'
author Dustin Demuth <dustin@intevation.de>
date Thu, 07 Jan 2016 16:19:41 +0100
parents c2a726887dd7
children bf7bb9583a40
comparison
equal deleted inserted replaced
992:77ea9a5c5f1d 994:092e245b13a4
58 58
59 this.dockedItems = [{ 59 this.dockedItems = [{
60 xtype: 'toolbar', 60 xtype: 'toolbar',
61 dock: 'bottom', 61 dock: 'bottom',
62 items: ['->', { 62 items: ['->', {
63 text: 'Zurücksetzen',
64 icon: 'resources/img/edit-redo.png',
65 action: 'reset',
66 probeId: this.probeId,
67 parentId: this.parentId
68 }, {
63 text: 'Hinzufügen', 69 text: 'Hinzufügen',
64 icon: 'resources/img/list-add.png', 70 icon: 'resources/img/list-add.png',
65 action: 'add', 71 action: 'add',
66 probeId: this.probeId, 72 probeId: this.probeId,
67 parentId: this.parentId 73 parentId: this.parentId
177 183
178 setReadOnly: function(b) { 184 setReadOnly: function(b) {
179 if (b == true){ 185 if (b == true){
180 //Readonly 186 //Readonly
181 this.down('button[action=add]').disable(); 187 this.down('button[action=add]').disable();
188 this.down('button[action=reset]').disable();
182 }else{ 189 }else{
183 //Writable 190 //Writable
184 this.down('button[action=add]').enable(); 191 this.down('button[action=add]').enable();
192 this.down('button[action=reset]').enable();
185 } 193 }
186 } 194 }
187 }); 195 });

http://lada.wald.intevation.org