comparison app/view/widgets/LadaForm.js @ 270:0d6552bb28ea

Add cancel Button to the editproben window and only show save button if the form is actually writeable.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 06 Aug 2013 14:33:14 +0200
parents 82118c01bc52
children 1afccc0cab90
comparison
equal deleted inserted replaced
269:eda619ad45b0 270:0d6552bb28ea
127 /* Iterate over all toolbars of lists and hide them */ 127 /* Iterate over all toolbars of lists and hide them */
128 var childs = this.query('toolbar'); 128 var childs = this.query('toolbar');
129 for (var i = childs.length - 1; i >= 0; i--){ 129 for (var i = childs.length - 1; i >= 0; i--){
130 childs[i].setVisible(false); 130 childs[i].setVisible(false);
131 } 131 }
132 /* Find Save-Button and hide it */
133 var win = this.up('window');
134 var buttons = win.query('.button');
135 for (var j = buttons.length - 1; j >= 0; j--){
136 if (buttons[j].text === 'Speichern') {
137 buttons[j].setVisible(false);
138 };
139 };
132 } 140 }
133 }, 141 },
134 parseResponse: function(response) { 142 parseResponse: function(response) {
135 var json = Ext.decode(response.responseText); 143 var json = Ext.decode(response.responseText);
136 if (json) { 144 if (json) {

http://lada.wald.intevation.org