69 dataType: 'json', |
69 dataType: 'json', |
70 url: url, |
70 url: url, |
71 cache: false, |
71 cache: false, |
72 data: data, |
72 data: data, |
73 type: 'POST', |
73 type: 'POST', |
74 success: function(data, status, xhr) { |
74 success: function(data) { |
75 commit(true); |
75 if (data.error) { |
|
76 console.log('delete: ' + data.msg); |
|
77 alert('Fout: ' + data.msg); |
|
78 } else { |
|
79 console.log('delete: success'); |
|
80 } |
76 location.reload(true); |
81 location.reload(true); |
77 }, |
82 }, |
78 error: function(jqXHR, textStatus, errorThrown) { |
83 error: function(jqXHR, textStatus, errorThrown) { |
79 commit(false); |
84 commit(false); |
80 console.log('mash deleterow ' + textStatus); |
85 console.log('mash deleterow ' + textStatus); |
87 dataType: 'json', |
92 dataType: 'json', |
88 url: url, |
93 url: url, |
89 cache: false, |
94 cache: false, |
90 data: data, |
95 data: data, |
91 type: 'POST', |
96 type: 'POST', |
92 success: function(data, status, xhr) { |
97 success: function(data) { |
93 commit(true); |
98 if (data.error) { |
|
99 console.log('insert: ' + data.msg); |
|
100 alert('Fout: ' + data.msg); |
|
101 } else { |
|
102 console.log('insert: success'); |
|
103 } |
94 location.reload(true); |
104 location.reload(true); |
95 }, |
105 }, |
96 error: function(jqXHR, textStatus, errorThrown) { |
106 error: function(jqXHR, textStatus, errorThrown) { |
97 commit(false); |
107 commit(false); |
98 console.log('mash addrow ' + textStatus); |
108 console.log('mash addrow ' + textStatus); |
105 dataType: 'json', |
115 dataType: 'json', |
106 url: url, |
116 url: url, |
107 cache: false, |
117 cache: false, |
108 data: data, |
118 data: data, |
109 type: 'POST', |
119 type: 'POST', |
110 success: function(data, status, xhr) { |
120 success: function(data) { |
111 commit(true); |
121 if (data.error) { |
|
122 console.log('updaterow: ' + data.msg); |
|
123 alert('Fout: ' + data.msg); |
|
124 } else { |
|
125 console.log('updaterow: success'); |
|
126 } |
112 location.reload(true); |
127 location.reload(true); |
113 }, |
128 }, |
114 error: function(jqXHR, textStatus, errorThrown) { |
129 error: function(jqXHR, textStatus, errorThrown) { |
115 commit(false); |
130 commit(false); |
116 console.log('mash updaterow ' + textStatus); |
131 console.log('mash updaterow ' + textStatus); |