UPDATE Added hide reset button on data entry

Added javascript that watches if info is being entered into the weight input and hides reset button if so.
This commit is contained in:
2018-10-22 23:40:49 -04:00
parent 1736c75272
commit 852bb87ae9

View File

@@ -120,6 +120,11 @@
}); });
//hide reset button on weight input
jQuery('.input-weight').keyup(function() {
jQuery('.b-infoentry__reset').hide();
}).keyup();
//reset inputs and plate visuals //reset inputs and plate visuals
jQuery(".b-infoentry__reset").click(function(){ jQuery(".b-infoentry__reset").click(function(){
jQuery(".input-weight, .input-weightsneeded").val(''); jQuery(".input-weight, .input-weightsneeded").val('');
@@ -132,7 +137,6 @@
var savedScrollTop; var savedScrollTop;
function saveScroll() { function saveScroll() {
savedScrollTop = jQuery(document).scrollTop(); savedScrollTop = jQuery(document).scrollTop();
console.log(savedScrollTop);
} }