javascript - Fullcalendar editable property not working? -
here code
$(document).ready(function() { $('#calendar').fullcalendar({ header: { left: 'prev,next today', center: 'title', right: 'month,basicweek,basicday' }, dayclick: function() { alert('nemke'); }, events: function(start, end, callback) { $.ajax({ url: 'usercalendarservice.asmx/getevents', type: 'post', datatype: 'xml', data: {start: + math.round(start.gettime() / 1000),end: + math.round(end.gettime() / 1000)}, success: function(result) { var events = []; $(result).find('event').each(function() { events.push({ title: $(this).find('title').text(), start: $(this).find('start').text(), editable: $(this).find('editable').text() }); }); callback(events); } }); }, disableresizing: true, editable: false //disabledragging:true }) }); this property editable false not working. tried set each event it's behavior server, , didn't work. tried set property false, , didn't work. need set events editable , not. can set disabledragging, doesn't solve issue 'cause need of events able drag.
this property works event source set array example looks ajax callback not working. has had similar issue?
the .text() method returns string , editable supposed have boolean value
Comments
Post a Comment