| Issue 944: | className no longer working? (ver 1.5.1) | |
| 5 people starred this issue and may be notified of changes. | Back to list |
I upgraded to 1.5.1 and now the className option does not appear to take any effect. I noticed in the docs the "New options have been added in version 1.5 to change an event's colors," but these aren't replacing className entirely, are they?
May 8, 2011
Project Member
#1
adamrs...@gmail.com
Status:
Reproducing
May 9, 2011
I've used the code from the fullcalendar website as an example at http://jsfiddle.net/yCwDR/ It uses the following resources: http://arshaw.com/js/fullcalendar-1.5.1/fullcalendar/fullcalendar.min.js http://arshaw.com/js/fullcalendar-1.5.1/fullcalendar/fullcalendar.css --- As you see, I've created a "red-event" class which just applies a red background, and also a "large-font" class which increases font size. In making this example though, I realized that it's specifically the background-color CSS attribute that gets ignored. Therefore, .red-event doesn't take effect.
May 9, 2011
Sorry, it's http://jsfiddle.net/yCwDR/1/ (the original link was my first revision before I added the "large-font" CSS class.
May 15, 2011
It looks like background-color, border-color, and color are all being ignored because of the "fc-event-skin" class.
May 24, 2011
It's not working for me when loading the event data from a url.
------------------------------------
Implementation:
<script type="text/javascript">
$(document).ready(function () {
// page is now ready, initialize the calendar...
$('#calendar').fullCalendar({
events: "Cal.ashx"
});
// put your options and callbacks here
});
</script>
<div id='calendar'></div>
------------------------------------
Data (from Cal.ashx):
[{"id":1,"title":"Requested: This is an asset Request","start":1306191600,"end":1307142000,"url":"/AssetManagerWeb/Authenticated/Assets/ViewRequest.aspx?AssetRequestId=d1793d06-054b-423c-92e0-7e38bb8be2eb","className":"calRequested"}]
------------------------------------
Observed Code (from firebug):
<div class="fc-event-inner fc-event-skin"><span class="fc-event-title">Requested: This is an asset Request</span></div>
Jul 22, 2011
For me the same, 1.5.1 with Jason fetching of the events. The fc-event-skin prevents showing up with what is defined at className. Any solutions?
Jul 22, 2011
Commenting out fc-event-skin in css works for me
Aug 13, 2013
this issue has been fixed a long time ago, sorry i forgot to update this thread. the `.fc-event-skin` inner container is no longer used. It is simply `.fc-event` that is in charge of the default styling, which is easily overridable because it has low CSS precedence, so this problem should be fixed.
Status:
Released
Labels: Type-BehaviorMod |
|
| ► Sign in to add a comment |