prevent event display twice on addevent fix #67
This commit is contained in:
@@ -18,7 +18,10 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||||||
locale: frLocale,
|
locale: frLocale,
|
||||||
weekNumbers: true,
|
weekNumbers: true,
|
||||||
selectable: true,
|
selectable: true,
|
||||||
events: 'event/load/'+iduser,
|
eventSources: [{
|
||||||
|
'id': 1,
|
||||||
|
'url': 'event/load/'+iduser,
|
||||||
|
}],
|
||||||
eventLimit:8,
|
eventLimit:8,
|
||||||
eventDrop: function(info) {
|
eventDrop: function(info) {
|
||||||
info.revert();
|
info.revert();
|
||||||
|
@@ -453,7 +453,7 @@ function eventSubmit() {
|
|||||||
$("#modalsubmit .modal-body").append("<div class='alert alert-danger' style='margin: 5px 0px'>"+response.error+"</div>");
|
$("#modalsubmit .modal-body").append("<div class='alert alert-danger' style='margin: 5px 0px'>"+response.error+"</div>");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
calendar.addEvent(response);
|
calendar.addEvent(response,1);
|
||||||
calendar.render;
|
calendar.render;
|
||||||
$('#modalsubmit').modal('hide');
|
$('#modalsubmit').modal('hide');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user