Plugin Author
anmari
(@anmari)
Hi,
hiding with css is probably the safest (I’m not a fan of js solutions). There are currently no settings to stop weekends being generated
(what would one do if an event was on a weekend ??)
On a public school cafeteria calendar, there are no weekend events, so I can safely hide weekends.
CSS alone does not work, because if you hide the weekend columns, the colspan is wrong on the td.pad cells.
I actually went with a pure jQuery solution. This way, it will degrade gracefully for users with JS disabled:
$(document).ready(function(){
$('table.largecalendar td.day6, table.largecalendar td.day7, table.largecalendar th.saturday, table.largecalendar th.sunday').hide();
var colspans = $('table.largecalendar td.pad').attr('colSpan');
if (colspans>1) $('table.largecalendar td.pad').attr('colSpan', parseInt(colspans)-1);
});
Thanks for the prompt response! I love the plugin. I also wanted to build a customized event listing, and I was able to do that easily by configuring a list type.