www/js/rec_edit.js

changeset 777
daf55c944fb0
parent 775
3f2f6e483a4e
child 804
ac5c3e97fcf1
equal deleted inserted replaced
776:5189ee5445cd 777:daf55c944fb0
2733 url: url, 2733 url: url,
2734 cache: false, 2734 cache: false,
2735 async: false, 2735 async: false,
2736 data: data, 2736 data: data,
2737 type: 'POST', 2737 type: 'POST',
2738 success: function(data, status, xhr) { 2738 success: function(data) {
2739 console.log('saveRecord(' + goback + ') success'); 2739 if (data.error) {
2740 console.log('saveRecord(' + goback + ') error ' + data.msg);
2741 alert('SQL fout: ' + data.msg);
2742 } else {
2743 console.log('saveRecord(' + goback + ') success');
2744 }
2740 if (goback) 2745 if (goback)
2741 window.location.href = my_return; 2746 window.location.href = my_return;
2742 else 2747 else
2743 window.location.href = 'rec_export.php?record=' + my_record + '&return=' + my_return + '&name=' + dataRecord.name; 2748 window.location.href = 'rec_export.php?record=' + my_record + '&return=' + my_return + '&name=' + dataRecord.name;
2744 }, 2749 },

mercurial