| Issue 1681: | fullCalendar + JqueryMobile on pageshow duplicate events | |
| 2 people starred this issue and may be notified of changes. | Back to list |
I have problems when remove and update events.
Case...
Into header Page:
------------------------
<!-- jQuery -->
jquery-1.9.0.min.js
<!-- jQuery Ui -->
jquery-ui-1.9.2.custom.min.js
<!-- Fancybox -->
jquery.fancybox.min.js
<!-- FullCalendar -->
fullcalendar.js
<!-- jQuery Mobile -->
jquery.mobile-1.3.0-beta.1.min.js
<!-- Init -->
init.js
------------------------
Into init.js
------------------------
$(function() {
$('#admin_cal').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
defaultView: 'agendaWeek',
editable: true,
minTime : 8,
maxTime : 21,
defaultEventMinutes : 30,
slotMinutes : 15,
allDaySlot : false,
eventSources: [{url: 'json_events.php'}],
selectable: true,
selectHelper: true,
select: function (start, end, allDay) {
var start_date = $.fullCalendar.formatDate(start, 'yyyy-MM-dd');
$('#adminAddPrenotazione').popup("open");
$('input[name="data"]').val(start_date);
},
eventClick: function (calEvent, jsEvent, view) {
if (!$(jsEvent.target).hasClass("icon")) {
$("#id_scheda_label").html("");
$("#id_scheda_label").html(calEvent.id);
$("#sc_id_scheda").val(calEvent.id);
id_scheda_selected = calEvent.id;
$.mobile.changePage( $("#scheda_cliente"), "pop", true, true);
}
}
});
});
<!-- IF I USE -->
$( "#index_admin" ).bind( "pageshow", function( event ){
$('#admin_cal').fullCalendar( 'removeEvents' );
$('#admin_cal').fullCalendar( 'addEventSource', 'json_events.php' );
});
// -- FullCalendare remove and add events + 1 at each update
// example:
PageShow 1 PageShow 2 PageShow 3
|--------------| |--------------| |--------------|
| Fri 8 | | Fri 8 | | Fri 8 |
|--------------| |--------------| |--------------|
| Event A | | EventA|EventA| |Ev.A|Ev.A|Ev.A|
|--------------| |--------------| |--------------|
<!-- IF I USE -->
$( "#index_admin" ).bind( "pageshow", function( event ){
$('#admin_cal').fullCalendar( 'refetchEvents' )
});
// on Firebug Consol I have...
PageShow 1
- GET json_events.php?start=1358636400&end=1359241200&_=1358862632552 200 OK 1042ms
PageShow 2
- GET json_events.php?start=1358636400&end=1359241200&_=1358862632552 200 OK 1042ms
- GET json_events.php?start=1358636400&end=1359241200&_=1358862632553 200 OK 2042ms
PageShow 3
- GET json_events.php?start=1358636400&end=1359241200&_=1358862632552 200 OK 1042ms
- GET json_events.php?start=1358636400&end=1359241200&_=1358862632553 200 OK 2042ms
- GET json_events.php?start=1358636400&end=1359241200&_=1358862632554 200 OK 3042ms
-------------------------------------------------
How can I solve this problem?
Aug 15, 2013
Project Member
#1
adamrs...@gmail.com
Status:
ReproTemp
Aug 25, 2013
This message is being bulk-sent to a number of issues, both [very] old and new.
I have been working on taming this issue tracker, which has gotten out of control after months of neglect. You are receiving this message because I could not successfully reproduce the bug you were reporting with a reasonable amount of effort. I have written some new bug-report guidelines to be used by all bug reports going forward:
http://arshaw.com/fullcalendar/wiki/Report-a-Bug/
Its salient point is that all bug reports should have an isolated demonstration, viewable online with a tool like JSFiddle.
If the bug you originally reported is still important to you, could you please first try the latest version of FullCalendar and see if it is fixed? If not, could you please file a NEW bug report that follows the new guidelines? This issue will not be monitored for further comments.
I'm sorry I have taken so long to respond to many of your request, and I'm sorry if this new procedure causes extra work for you. Going forward, the issue tracker will be much more of a well-oiled machine.
Again, if you must, PLEASE SUBMIT A *NEW* BUG REPORT (following the new guidelines) INSTEAD OF COMMENTING ON THIS ONE. Further comments on this report will be ignored. Thanks.
Status:
Invalid
Labels: -Type-Defect Type-Bug |
|
| ► Sign in to add a comment |