From 391a71c57c3a7fe89385237ad4e24555ab097f71 Mon Sep 17 00:00:00 2001 From: Amitai Burstein Date: Sun, 11 Feb 2024 13:35:40 +0200 Subject: [PATCH] Remove unused datePickers code --- lib/IHP/static/helpers.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/IHP/static/helpers.js b/lib/IHP/static/helpers.js index 039cea78a..248b0447d 100644 --- a/lib/IHP/static/helpers.js +++ b/lib/IHP/static/helpers.js @@ -385,7 +385,6 @@ function initFileUploadPreview() { } } -var datePickers = []; function initDatePicker() { if (!('flatpickr' in window)) { return; @@ -402,14 +401,6 @@ function initDatePicker() { }); } -function removeDatePickers() { - for (var i = 0; i < datePickers.length; i++) { - console.log(datePickers[i]); - datePickers[i].destroy(); - } - datePickers = []; -} - var locked = false; window.transitionToNewPage = function (newHtml) { if (locked) {