mirror of
https://github.com/pretix/pretix.git
synced 2026-08-16 11:46:27 +00:00
Fix datepicker locale when using min/max
This commit is contained in:
@@ -69,8 +69,6 @@ var cart = {
|
|||||||
$(function () {
|
$(function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
moment.locale($("body").attr("data-locale").substr(0, 2));
|
|
||||||
|
|
||||||
if ($("#cart-deadline").length) {
|
if ($("#cart-deadline").length) {
|
||||||
cart.init();
|
cart.init();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -328,6 +328,7 @@ $(function () {
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
$("body").removeClass("nojs");
|
$("body").removeClass("nojs");
|
||||||
|
moment.locale($("body").attr("data-datetimelocale"));
|
||||||
|
|
||||||
var scrollpos = sessionStorage ? sessionStorage.getItem('scrollpos') : 0;
|
var scrollpos = sessionStorage ? sessionStorage.getItem('scrollpos') : 0;
|
||||||
if (scrollpos) {
|
if (scrollpos) {
|
||||||
|
|||||||
Reference in New Issue
Block a user