154 data: data, |
154 data: data, |
155 type: 'POST', |
155 type: 'POST', |
156 success: function(data) { |
156 success: function(data) { |
157 if (data.error) { |
157 if (data.error) { |
158 console.log('update: ' + data.msg); |
158 console.log('update: ' + data.msg); |
159 alert('Fout: ' + data.msg); |
159 alert('Error: ' + data.msg); |
160 } else { |
160 } else { |
161 console.log('update: success'); |
161 console.log('update: success'); |
162 } |
162 } |
163 }, |
163 }, |
164 error: function(jqXHR, textStatus, errorThrown) { |
164 error: function(jqXHR, textStatus, errorThrown) { |