Category:Developers: Difference between revisions
Jump to navigation
Jump to search
| Line 83: | Line 83: | ||
window.onunload = function(){}; | window.onunload = function(){}; | ||
</script> | |||
=== Change the first day of the week in the datepicker=== | |||
The start day of the week in the checkin and checkout selectors is set automatically based on the language selected by the guest, different languages have different standards for this. | |||
It is possible to override it on a per language basis. | |||
This example changes English to start on Monday, The value of dow can be from 0 to 6 where 0 is Sunday. | |||
If you want to change multiple languages you would need to include a script for each language. | |||
<script> | |||
moment.updateLocale("en", { week: { | |||
dow: 1 | |||
}}); | |||
</script> | </script> | ||