import DomUtil from "../Dom/Util";
import { getPageOverlayContainer } from "../Helper/PageOverlay";
import { createFocusTrap, FocusTrap } from "focus-trap";
-import { wheneverFirstSeen } from "../Helper/Selector";
+import { wheneverSeen } from "../Helper/Selector";
let _didInit = false;
let _firstDayOfWeek = 0;
_firstDayOfWeek = parseInt(Language.get("wcf.date.firstDayOfTheWeek"), 10);
- wheneverFirstSeen(
+ wheneverSeen(
`input[type="date"]:not(.inputDatePicker), input[type="datetime"]:not(.inputDatePicker)`,
(element: HTMLInputElement) => {
const now = new Date();
}
_didInit = true;
_firstDayOfWeek = parseInt(Language.get("wcf.date.firstDayOfTheWeek"), 10);
- (0, Selector_1.wheneverFirstSeen)(`input[type="date"]:not(.inputDatePicker), input[type="datetime"]:not(.inputDatePicker)`, (element) => {
+ (0, Selector_1.wheneverSeen)(`input[type="date"]:not(.inputDatePicker), input[type="datetime"]:not(.inputDatePicker)`, (element) => {
const now = new Date();
element.classList.add("inputDatePicker");
element.readOnly = true;