Full calendar adding custom jquery script
-
Hello,
i am facing an issue, trying to making work a jquery script into Fullcalendar. Is there a jquery ninja who could help?
The purpose of the script is to retreive an event based on the text inside div.fc-event-inner, and add a background color to it.
the script work perfectly well in a standard page (no calendar) with same classes as in the fullcalendar. but not in the fullcalendar. Which keeps shows this light green background color.
jQuery(document).ready(function() {
jQuery(‘div.fc-event-inner:contains(“PIQUET APRES-MIDI PLACES LIBRES: 2 RESERVER”)’).css(‘background’,’green!important’);
jQuery(‘div.fc-event-inner:contains(“PIQUET MATIN PLACES LIBRES: 0 COMPLET!”)’).css(‘background’,’red!important’);
});the script is enqueued properly in my fonctions.php…
Please someone help me make this work! should be intersting for other users.
thank you very much!
The topic ‘Full calendar adding custom jquery script’ is closed to new replies.