comparison app/view/widgets/LadaForm.js @ 499:8b4ec61c5752

Removed most log messages to make the application less verbose.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 06 Nov 2014 11:12:21 +0100
parents 7c0653e8d9f7
children 369917727c86
comparison
equal deleted inserted replaced
498:c1b77fb96b01 499:8b4ec61c5752
112 jsonData: data, 112 jsonData: data,
113 method: method, 113 method: method,
114 callback: function(option, success, response) { 114 callback: function(option, success, response) {
115 this.parseResponse(response); 115 this.parseResponse(response);
116 if (this.success) { 116 if (this.success) {
117 console.log('Save was successfull');
118 this.fireEvent( 117 this.fireEvent(
119 'savesuccess', 118 'savesuccess',
120 this, 119 this,
121 this.model, 120 this.model,
122 response); 121 response);
123 } 122 }
124 else { 123 else {
125 console.log('Save was not successfull');
126 this.form.markInvalid(this.errors); 124 this.form.markInvalid(this.errors);
127 this.fireEvent( 125 this.fireEvent(
128 'savefailure', 126 'savefailure',
129 this, 127 this,
130 this.model, 128 this.model,
169 this.getForm().getFields().each(function (field) { 167 this.getForm().getFields().each(function (field) {
170 // Check if the field name is in the list of fields to ignore 168 // Check if the field name is in the list of fields to ignore
171 var ignore = false; 169 var ignore = false;
172 var k; 170 var k;
173 for (k = ignoreFields.length - 1; k >= 0; k--) { 171 for (k = ignoreFields.length - 1; k >= 0; k--) {
174 console.log(ignoreFields[k] + '===' + field.getName());
175 if (ignoreFields[k] === field.getName(true)) { 172 if (ignoreFields[k] === field.getName(true)) {
176 ignore = true; 173 ignore = true;
177 } 174 }
178 } 175 }
179 // field.setDisabled(bReadOnly); 176 // field.setDisabled(bReadOnly);

http://lada.wald.intevation.org