From 852bb87ae9fc6395ff3dc4515f62aab526fda3a8 Mon Sep 17 00:00:00 2001 From: Steven Haskell Date: Mon, 22 Oct 2018 23:40:49 -0400 Subject: [PATCH] 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. --- js/Weight Calculation Script-Edited-Jquery-V4.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/Weight Calculation Script-Edited-Jquery-V4.js b/js/Weight Calculation Script-Edited-Jquery-V4.js index d4fa08b..816a0af 100644 --- a/js/Weight Calculation Script-Edited-Jquery-V4.js +++ b/js/Weight Calculation Script-Edited-Jquery-V4.js @@ -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 jQuery(".b-infoentry__reset").click(function(){ jQuery(".input-weight, .input-weightsneeded").val(''); @@ -132,7 +137,6 @@ var savedScrollTop; function saveScroll() { savedScrollTop = jQuery(document).scrollTop(); - console.log(savedScrollTop); }