Can I have the Calendar week run from Sunday to Saturday instead of it starting on Monday through Sunday?
Awesome theme. Thanks.
3 replies · opened Dec 28, 2016
Can I have the Calendar week run from Sunday to Saturday instead of it starting on Monday through Sunday?
Awesome theme. Thanks.
Hello,
Thank You so much for the Kind Words! :)
This is Definitely Possible! Please find the following JS code on the Calendar Page:
var cal = $( '#calendar' ).calendario( {
onDayClick : function( $el, $contentEl, dateProperties ) {
for( var key in dateProperties ) {
console.log( key + ' = ' + dateProperties[ key ] );
}
},
caldata : canvasEvents
} ),
$month = $( '#calendar-month' ).html( cal.getMonthName() ),
$year = $( '#calendar-year' ).html( cal.getYear() );and replace it with:
var cal = $( '#calendar' ).calendario( {
onDayClick : function( $el, $contentEl, dateProperties ) {
for( var key in dateProperties ) {
console.log( key + ' = ' + dateProperties[ key ] );
}
},
caldata : canvasEvents,
startIn: 0
} ),
$month = $( '#calendar-month' ).html( cal.getMonthName() ),
$year = $( '#calendar-year' ).html( cal.getYear() );This will definitely work fine. Let us know if we can help you with anything else or if you find any further issues.
You guys are the best!! Thank you.
Anyone looking at this you need to use the top code for the week to run Sun to Sat. It's just reversed in the answer. You need the "startIn: 0" for it to work.
Thanks again!
Hello,
Thank You so much for the Kind Words! :)
Oops sorry about that! We just fixed it! :) Thanks for your Patience.
Do let us know if we can help you with anything else or if you find any further issues with Canvas.
Have the same question, or something new?
Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.
Reply on the dashboard