From 88950d7529a990880b29e80ee691e185b7966bd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Marchal?= Date: Tue, 30 Mar 2021 21:37:13 +0200 Subject: [PATCH] Add functionally to reset button --- explorer.html | 2 +- scripts/explorer.js | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/explorer.html b/explorer.html index 676ea41..7bc0a11 100644 --- a/explorer.html +++ b/explorer.html @@ -131,7 +131,7 @@
- +

Aucun résultat. Veuillez réessayer avec d'autres paramètres.

diff --git a/scripts/explorer.js b/scripts/explorer.js index dae1993..d8c9bb7 100644 --- a/scripts/explorer.js +++ b/scripts/explorer.js @@ -230,6 +230,17 @@ jQuery(document).ready(function($) selectedOptions = gatherURLdata(); filterData(selectedOptions); + $("input.reinit").click(function() + { + $('input').prop("disabled", false); + $('input').prop("checked", false); + $('select').val(""); + data = originalData; + availableOptions = originalAvailableOptions; + params = {}; + updateMenu(availableOptions); + }); + // menu initial generation $.getScript("scripts/explorer_menu.js", function() {