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:
@@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user