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