Show More
@@ -223,7 +223,6 b' var formatSelect2SelectionRefs = functio' | |||||
223 | // takes a given html element and scrolls it down offset pixels |
|
223 | // takes a given html element and scrolls it down offset pixels | |
224 | function offsetScroll(element, offset){ |
|
224 | function offsetScroll(element, offset){ | |
225 | setTimeout(function(){ |
|
225 | setTimeout(function(){ | |
226 | console.log(element); |
|
|||
227 | var location = element.offset().top; |
|
226 | var location = element.offset().top; | |
228 | // some browsers use body, some use html |
|
227 | // some browsers use body, some use html | |
229 | $('html, body').animate({ scrollTop: (location - offset) }); |
|
228 | $('html, body').animate({ scrollTop: (location - offset) }); |
General Comments 0
You need to be logged in to leave comments.
Login now