Last active
September 5, 2019 08:29
-
-
Save 153957/1fe08a4c2945bfb7bdd6e4751c4bc217 to your computer and use it in GitHub Desktop.
Fix TOA calender
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Added by Arne | |
jQuery( document ).ready( | |
function() { | |
setTimeout( | |
function() { | |
// Verberg minuten, alleen lesuren | |
jQuery("[name='time_minutes']").parent().parent().hide(); | |
jQuery("[name='end_time_mm']").parent().parent().hide(); | |
// Verberg alle uren behalve 1-9 | |
jQuery("[name='time_hours']").parent().parent().find("li:nth-child(n+11)").hide(); | |
jQuery("[name='time_hours']").parent().parent().find("li:nth-child(1)").hide(); | |
jQuery("[name='end_time_hh']").parent().parent().find("li:nth-child(n+12)").hide(); | |
jQuery("[name='end_time_hh']").parent().parent().find("li:nth-child(2)").hide(); | |
// Selecteer uur 1 standaard | |
jQuery("[name='time_hours']").parent().parent().find("li:nth-child(2)").trigger('click'); | |
}, | |
500 | |
); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment