My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 567: can not remove/hide allday slot
2 people starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Nov 2010


Sign in to add a comment
 
Reported by zehunter38, Jul 20, 2010
hi,

i'm trying to use AllDaySlot option to remove/hide this slot, but it does work only in month view.

my code :


	$(document).ready(function() {
	
		$('#calendar').fullCalendar({
			
			header: {
			left: 'prev,next today',
			center: 'title',
			allDaySlot: false,
			right: 'month,agendaWeek,agendaDay'
			},
			
			<?php
			if($USERAUTH->isAdmin()) 
			{	
				echo "editable: true,";
			}		
			?>
			
			events: "json.php",

		    eventDrop: function(event,dayDelta,minuteDelta,allDay,revertFunc) {

		        alert(
		            event.title + " was moved " +
		            dayDelta + " days and " +
		            minuteDelta + " minutes."
		        );

		        if (allDay) {
		            alert("Event is now all-day");
		        }else{
		            alert("Event has a time-of-day");
		        }


		    },

		    eventResize: function(event,dayDelta,minuteDelta,revertFunc) {

		        alert(
		            "The end date of " + event.title + "has been moved " +
		            dayDelta + " days and " +
		            minuteDelta + " minutes."
		        );


		    },
					
			loading: function(bool) {
				if (bool) $('#loading').show();
				else $('#loading').hide();
			}
			
		});
		
	});
Aug 25, 2010
Project Member #1 adamrs...@gmail.com
what do you mean? there is no all-day slot in month view. every event is displayed, whether it is all-day or not.
Status: Done
Sep 3, 2010
#2 zehunter38
Hi,

sorry i wasn't enought clear.
as i said, the "allDaySlot: false" work only on month view. the all day slot is not visible with this option on month view. but not on other view.

this mean that in week or day view, the all day slot is style visible. so i would like to know how to also hide this all day line to the week view, and day view.
thanks in advance,
Oct 7, 2010
Project Member #3 adamrs...@gmail.com
 Issue 634  has been merged into this issue.
Oct 7, 2010
Project Member #4 adamrs...@gmail.com
i am sorry, but i still do not understand the basics of your question. maybe have someone else write it?
Status: Discussing
Labels: -Type-Defect Type-Question
Oct 8, 2010
#5 zehunter38
Hi again,

i try to know how to make the "all day" line/slot to not appear on week view, and in day view.

look at the picture, i don't want to see what is surrounded in red.

hope, i'm clear now. let me know if you need more information.

regards,
calendar.png
31.5 KB   View   Download
Nov 10, 2010
Project Member #6 althaus.it
Do you only want to hide the label you marked or the whole feature?
Nov 10, 2010
#7 zehunter38
il would like to hide this slot, and then, to not be able to make event set to "all day".
Nov 11, 2010
Project Member #8 althaus.it
Set allDaySlot to false:

http://arshaw.com/fullcalendar/docs/agenda/allDaySlot/
Nov 11, 2010
#9 zehunter38
hi,

just read my first post (javascript code), and you will see that screen capture i did is directly with  "allDaySlot: false"

i didn't open a bug for nothing. alldayslot doesn't work on week view or day view.

regards,
 
Nov 11, 2010
Project Member #10 althaus.it
Sorry... got confused a bit. ?:-|

In your code you added allDaySlot to the header, but it has to be one level above to be a valid config option:

...
header: {
 bla
},
allDaySlot: false,
bla: bla,
events: "json.php",
...
Nov 11, 2010
#11 zehunter38
Hi,

Sorry, i didn't see that mistake.
i will need to wait on monday to try it on my project (not at home right now).
i will let you know if all is ok.
thanks again,
regards,
Nov 16, 2010
#12 zehunter38
Hi again,

sorry, i fell myself stupid now.
it work like a charm when you but this option in the good position.
thanks a lot for your help!
Nov 21, 2010
Project Member #13 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Done
Sep 21, 2011
#14 sandorko...@gmail.com
Yes, you put in 

header: {
			left: 'prev,next today',
			center: 'title',
			allDaySlot: false,
			right: 'month,agendaWeek,agendaDay'
			},

and "allDaySlot" must be on the same level with "header":

allDaySlot: false,
header: {
			left: 'prev,next today',
			center: 'title',
			
			right: 'month,agendaWeek,agendaDay'
			},

Apr 21, 2014
#15 david.me...@gmail.com
When the property Allday default = false or reading of data base Allday and treat the "eventRender" event, nothing is displayed. 
The "compileSlotSegs" fullcalendar.js function has an error in the "colSegs" object. 
The "colSegs' object has no data. 
This happens in version 2.0.0-beta2. 
In version 1.6.4 works correctly. 
thanks
Sign in to add a comment

Powered by Google Project Hosting