Added Reset Button

Included reset button to reset weight inputs, plates required, and plate visuals.
This commit is contained in:
2018-10-21 16:37:25 -04:00
parent c54ac63db9
commit 765e2a4f1c
3 changed files with 29 additions and 1 deletions

View File

@@ -114,6 +114,19 @@
} // End if
});
//show reset button on calculate
jQuery(".input-calculate").click(function(){
jQuery(".b-infoentry__reset").show();
});
//reset inputs and plate visuals
jQuery(".b-infoentry__reset").click(function(){
jQuery(".input-weight, .input-weightsneeded").val('');
jQuery(".input-final, .input-difference").html('0');
jQuery(".b-platevisual__plates").html('');
jQuery(".b-infoentry__reset").hide();
});
//Saves scroll position on focus and restores
var savedScrollTop;
function saveScroll() {