From 59c84893ed5870c59f00cde44a22f23f92725720 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 29 Jan 2023 16:51:58 +0000 Subject: [PATCH] [r34] disable date inputs --- themes/rule34v2/script.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/themes/rule34v2/script.js b/themes/rule34v2/script.js index ab05cae1..8c559ad7 100644 --- a/themes/rule34v2/script.js +++ b/themes/rule34v2/script.js @@ -1,4 +1,9 @@ +// Disable things that get in the way of smooth admin'ing +document.addEventListener('DOMContentLoaded', () => { + document.querySelectorAll("input[type='date']").forEach(e => e.setAttribute('type', 'text')); +}); +// Navbar controls var navHidden = false; function toggleNav() { if(navHidden) { @@ -18,7 +23,7 @@ document.addEventListener('DOMContentLoaded', () => { } }); - +// Desktop mode toggle var forceDesktop = false; function toggleDesktop() { if(forceDesktop) {