less popups, less reloads

This commit is contained in:
Jens Timmerman 2021-08-02 19:18:32 +02:00
parent 08932839be
commit c0f412334a
1 changed files with 4 additions and 6 deletions

View File

@ -62,7 +62,7 @@
data: {'title': title, 'start': start, 'end': end}, data: {'title': title, 'start': start, 'end': end},
dataType: "json", dataType: "json",
success: function (data) { success: function (data) {
alert("Added Successfully"); //alert("Added Successfully");
location.reload(); location.reload();
}, },
failure: function (data) { failure: function (data) {
@ -82,8 +82,7 @@
data: {'title': title, 'start': start, 'end': end, 'id': id}, data: {'title': title, 'start': start, 'end': end, 'id': id},
dataType: "json", dataType: "json",
success: function (data) { success: function (data) {
alert('Event Update'); //alert('Event Update');
location.reload();
}, },
failure: function (data) { failure: function (data) {
alert('There is a problem!!!'); alert('There is a problem!!!');
@ -102,8 +101,7 @@
data: {'title': title, 'start': start, 'end': end, 'id': id}, data: {'title': title, 'start': start, 'end': end, 'id': id},
dataType: "json", dataType: "json",
success: function (data) { success: function (data) {
alert('Event Update'); //alert('Event Update');
location.reload();
}, },
failure: function (data) { failure: function (data) {
alert('There is a problem!!!'); alert('There is a problem!!!');
@ -120,7 +118,7 @@
data: {'id': id}, data: {'id': id},
dataType: "json", dataType: "json",
success: function (data) { success: function (data) {
alert('Event Removed'); //alert('Event Removed');
location.reload(); location.reload();
}, },
failure: function (data) { failure: function (data) {