fullcalendar

FullCalendar and django

浪尽此生 提交于 2019-12-12 08:16:45
问题 I want to use fullcalendar jquery plugin in my django project. I have an Entry model class Entry(models.Model): date = models.DatetimeField() it only has a date attribute. I know that fullcalendar uses start and end but will get to that too :) my ajax view is the following def eventsFeed(request): from django.utils.timezone import utc from django.core.serializers.json import DjangoJSONEncoder if request.is_ajax(): print 'Its ajax from fullCalendar()' try: start = datetime.fromtimestamp(int

Javascript Fullcalendar - copying events

假如想象 提交于 2019-12-12 08:14:42
问题 I'm using Fullcalendar (http://arshaw.com/fullcalendar) in my project. It gets events via json source. I want to give the user option to copy one event on the calendar to other day - and I'd like to use dragging for that (well, that's the client's requirement). But dragging seems like moving an event, not copying - is there any way to get the "copy" of an event being dragged (or copy stay in original place), so it looks like a copy operation? I tried to copy event object in eventDragStart

How to combine jquery date-picker and jquery full calendar

◇◆丶佛笑我妖孽 提交于 2019-12-12 08:12:35
问题 Can any one tell me how I could update a selection in a date picker to a full calendar ie When user selects date from DatePicker then FullCalendar loads events for given date. 回答1: Take a look at this : Issue 167: Mini Calender to control Main Calender . Or make the combination with following example : $(document).ready(function() { $("#fullcalendar").fullCalendar({ // ..... }); $('#datepicker').datepicker({ inline: true, onSelect: function(dateText, inst) { var d = new Date(dateText); $('

FullCalendar - Changing the text in the basicDay view

荒凉一梦 提交于 2019-12-12 06:59:43
问题 When a user clicks on the day link in the month view, I would like the day view to display a bit more information. So when they click this link: I would like it to display this: Basically, I want to append the order description to the order number. I already have the order description in the event details returned from my Web API call, and I use that description as a tool tip on the month view. Here are the eventRender and viewRender methods that are part of my calendar definition:

Tooltip in fullcalendar not working

戏子无情 提交于 2019-12-12 06:16:24
问题 everyone! I'm trying to show tooltip over events in fullcalendar. But it's not working and show in console this message Uncaught SyntaxError: Unexpected token ( What can be a problem? This is my js-function code: $('#calendar').fullCalendar(function() { eventAfterRender: function(event, element) { $(element).tooltip({ title: event.title, container: "body" }); } }); 回答1: You are passing function. You should pass your options and callbacks. Read Docs $('#calendar').fullCalendar({ //Removed

Invalid data in mongoDB after insert of an ISO data

廉价感情. 提交于 2019-12-12 06:07:13
问题 I try to store a record based on a dayClick event out of the jquery fullcalendar. According to the consol log the date is provided as: locale: Object, _d: Date 2015-03-19T00:00:00.000Z, then I pass it to ce.start and ce.end, when I check the database I have 'Invalid date' as value in calevnt.start and calevent.end --- What's wrong here? On the client: Template.calendar.helpers({ options: function() { return { lang: 'de', dayClick:function(date,allDay,jsEvent,view){ var ce = {}; ce.start =

Fullcalendar jquery plugin Show years on nextYear buttons

落花浮王杯 提交于 2019-12-12 05:57:36
问题 I'm using the fullcalendar jquery plugin, and would like to display 2009 and 2011 in the nextYear and prevYear buttons. For exmaple: 2009 May 2010 2011 I know I can put static text on the buttons like this: buttonText: { prevYear: '2009', nextYear: '2011' }, But I would like those years to change, depending on the year that the calendar is currently viewing. There's documentation about 'year' here: http://arshaw.com/fullcalendar/docs/current_date/ but I don't know how to get that 'year'

How to update event source object to particular event source in full calendar dynamically

浪子不回头ぞ 提交于 2019-12-12 05:56:47
问题 Hello I have loaded one calendar using below code. dataFactory.httpRequest('getCalanderTaskData','GET').then(function(data) { $scope.taskCalanderDailyTask = data.dailyTask; $scope.taskCalanderDueTask = data.dueTask; $scope.fullCalendarEventSources = { dailyTask : { events:$scope.taskCalanderDailyTask, textColor : '#000', backgroundColor: '#FFD000', }, dueTask : { events:$scope.taskCalanderDueTask, textColor : '#fff', backgroundColor: '#da1445', } }; $('#fullcalendar').fullCalendar({

Show a Bootstrap popup and then revert the eventDrop in FullCalendar based on user's choice

倖福魔咒の 提交于 2019-12-12 05:51:12
问题 Currently I am using Javascript confirm box to ask whether the user wants to proceed or he wants to revert, but I need to warn the user using Bootstrap popup. User needs to say 'Proceed/Cancel' in popup. I used bootstrap modal popup. but the 'drop' doesn't wait for user's choice. It executes the flow of code written inside 'eventDrop', before user clicks yes/no button of popup. Current code snippet: eventDrop: function(event, delta, revertFunc) { if (!confirm("Are you sure to re-book the

How do you use qtip Modal on fullCalendar?

痴心易碎 提交于 2019-12-12 05:40:07
问题 How do I implement this code from qTip for my fullcalendar Events? This is a modal feature of the qTip plugin and I wish to display this modal whenever I click an event in the calendar. Here is the link for the tutorial: http://craigsworks.com/projects/qtip/demos/effects/modal# 回答1: Here's an example on how to create the qtip when an event gets clicked. For perfomance reasons, the modal is created onclick for the specified event, not onpageload for all events. $(document).ready(function() { /