Release Nouri 1.3.3 with shopping articles

This commit is contained in:
2026-05-01 14:32:30 +02:00
parent 6b2c495cf2
commit aff40eff49
10 changed files with 334 additions and 40 deletions
+20
View File
@@ -219,6 +219,25 @@
});
};
const initCreateFromSearch = () => {
document.querySelectorAll("[data-create-from]").forEach((container) => {
const inputSelector = container.getAttribute("data-create-from");
if (!inputSelector) return;
const input = document.querySelector(inputSelector);
const hiddenName = container.querySelector("[data-create-name]");
if (!(input instanceof HTMLInputElement) || !(hiddenName instanceof HTMLInputElement)) return;
const sync = () => {
const value = input.value.trim().replace(/\s+/g, " ");
hiddenName.value = value;
container.hidden = value.length === 0;
};
input.addEventListener("input", sync);
sync();
});
};
const initIosPullToRefresh = () => {
const isAppleTouchDevice = /iP(ad|hone|od)/.test(navigator.userAgent)
|| (navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1);
@@ -323,6 +342,7 @@
initMobileSheet();
initFilterInputs();
initSelectedPreviews();
initCreateFromSearch();
initIosPullToRefresh();
initDialogs();
});