less popups, less reloads
This commit is contained in:
parent
08932839be
commit
c0f412334a
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue