summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-10-12 00:39:28 +0200
committerGitHub <noreply@github.com>2019-10-12 00:39:28 +0200
commit592222c4012c833ef8d8a1503988d7e478f68a46 (patch)
treef884e6fac8732ef240cca8ee6b35d3a490c062cb /resources
parent91eae7d067be09d0aa6af3dd617a7aff4a66a9bb (diff)
parentddaba23c9ab62feeedf94ce8c3b8f92c986da05f (diff)
Merge pull request #659 from weeman1337/feature/630-mo-first-day-of-week
Sets Monday as first day of the week
Diffstat (limited to 'resources')
-rw-r--r--resources/assets/js/vendor.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/resources/assets/js/vendor.js b/resources/assets/js/vendor.js
index bf3807f7..b4b6487d 100644
--- a/resources/assets/js/vendor.js
+++ b/resources/assets/js/vendor.js
@@ -10,6 +10,13 @@ require('./forms');
require('./sticky-headers');
require('./moment-countdown');
+moment.updateLocale('en', {
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+});
+
$.ajaxSetup({
headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')}
});