forked from ScoDoc/ScoDoc
Update opolka/ScoDoc from ScoDoc/ScoDoc #2
@ -1,6 +1,5 @@
|
|||||||
// <=== CONSTANTS and GLOBALS ===>
|
// <=== CONSTANTS and GLOBALS ===>
|
||||||
|
|
||||||
const TIMEZONE = "Europe/Paris";
|
|
||||||
let url;
|
let url;
|
||||||
|
|
||||||
function getUrl() {
|
function getUrl() {
|
||||||
@ -630,13 +629,17 @@ function updateDate() {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
openAlertModal("Attention", div, "", "#eec660");
|
openAlertModal("Attention", div, "", "#eec660");
|
||||||
$(dateInput).datepicker(
|
const date_fra = Date.toFRA(lastWorkDay.toIsoUtcString().split("T")[0]);
|
||||||
"setDate",
|
|
||||||
Date.toFRA(lastWorkDay.toIsoUtcString().split("T")[0])
|
$(dateInput).datepicker("setDate", date_fra);
|
||||||
);
|
dateInput.value = date_fra;
|
||||||
|
date = lastWorkDay;
|
||||||
|
|
||||||
dateStr = formatDate(lastWorkDay).capitalize();
|
dateStr = formatDate(lastWorkDay).capitalize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.warn(dateStr, date, date.toIsoUtcString());
|
||||||
|
|
||||||
document.querySelector("#datestr").textContent = dateStr;
|
document.querySelector("#datestr").textContent = dateStr;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -89,8 +89,8 @@
|
|||||||
const readOnly = {{ readonly }};
|
const readOnly = {{ readonly }};
|
||||||
|
|
||||||
|
|
||||||
updateDate();
|
|
||||||
setupDate();
|
setupDate();
|
||||||
|
updateDate();
|
||||||
setupTimeLine();
|
setupTimeLine();
|
||||||
|
|
||||||
window.forceModule = "{{ forcer_module }}"
|
window.forceModule = "{{ forcer_module }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user