fullcalendar-columns icon indicating copy to clipboard operation
fullcalendar-columns copied to clipboard

External Drag&Drop

Open webnologie opened this issue 8 years ago • 3 comments

Hello, an external Drop does not work. do you have any solution? thank you!

webnologie avatar Sep 20 '16 09:09 webnologie

Hi, I'm sorry I don't. If you find a solution, please let me know here! Thanks

mherrmann avatar Sep 20 '16 14:09 mherrmann

hi, my "solution" is not the best. when the event drag (drop: function(date, jsEvent, ui, resourceId)) is released i add the following code. problem is that i have this event 2 times in the normal view.

    var moment = $('#calendar').fullCalendar('getDate');
    var time = $('#calendar').fullCalendar('option','minTime');
    startDate = moment.format("YYYY-MM-DD")+"T"+time;

        $('#calendar').fullCalendar( 'addEventSource', [{
       title: "title",
           start: startDate,
           column: 1,
           end: (new Date(startDate)).getTime()+ 60 * 60 * 1000
    }] )
        $('#calendar').fullCalendar('refetchEvents');

webnologie avatar Sep 20 '16 16:09 webnologie

hello , is it possible to fix it some how? becouse i tryed and yet nothing ... and webnologi i tryed your solution , just didnt understood where u put the code..

alexkv1984 avatar Jul 29 '17 18:07 alexkv1984