Add functionally to reset button
This commit is contained in:
parent
60422a6400
commit
88950d7529
@ -131,7 +131,7 @@
|
||||
</div>
|
||||
<div class="button-cont">
|
||||
<input type="submit" value="Générer">
|
||||
<input type="button" value="Réinitialiser">
|
||||
<input type="button" value="Réinitialiser" class="reinit">
|
||||
</div>
|
||||
</form>
|
||||
<p class="no-result"><strong>Aucun résultat.</strong> Veuillez réessayer avec d'autres paramètres.</p>
|
||||
|
@ -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()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user