jquery - unable to change fullcalander event color ('fc-event-inner' CSS) (used under JIRA) -


i went through other posts related fullcaldner event color couldn't work me.

i tried below

 calendar.fullcalendar('renderevent',{                                         id: resp[i].id,                                                                                  title: resp[i].desc,                                         start: s,                                         end: e,                                         allday: true,                                         comments: resp[i].comments,                                         classname: ["event",  "greenevent"],                                         eventcolor: '#378006'                                        } 

also, tried applying @ calendar obejct:

    disabledragging: false,             eventcolor: '#378006',                           //eventbackgroundcolor: 'red',                       eventclick:...   

but make events border color change not change event's background color change. event's background color remains white only...

i have found, uses - '.fs-event-inner' css override runtime. tried changing @ firebug , shows event color changed. but, when tried dynamically change color through below, did not applied , work.

 ajs.$('.fc-event-inner').css({"background":"red"}); 

can 1 please suggest me how resolve , background color changed events.

i using fullcaldner in jira.

my friend, had same problem. i'm using fullcalendar 1.6.1 , jquery ui 1.10.3

i did , worked me, hope work you.

when create fullcalendar, use callback "eventrender".

$('#my_cal_div').fullcalendar({    ...    ,eventrender:function(event,element){    element.children('.fc-event-inner').css({'background-color':'yellow'});   element.children('.fc-event-inner').css({'border-color':'blue'});   element.children('.fc-event-inner').css({'color':'red'});  }  ...  }); //end of fullcalendar constructor... 

at least, worked me.

saludos !

leonardo oporto.


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -