Skip to content

Commit

Permalink
Merge pull request #1906 from digitallyinduced/amitaibu-patch-4
Browse files Browse the repository at this point in the history
Remove unused datePickers code
  • Loading branch information
mpscholten authored Feb 11, 2024
2 parents bce6c4d + 391a71c commit 48eeb7a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/IHP/static/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@ function initFileUploadPreview() {
}
}

var datePickers = [];
function initDatePicker() {
if (!('flatpickr' in window)) {
return;
Expand All @@ -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) {
Expand Down

0 comments on commit 48eeb7a

Please sign in to comment.