mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
removed leftover {{debug}}
This commit is contained in:
parent
272cc93bd2
commit
4318b66a6e
6 changed files with 9 additions and 13 deletions
|
@ -5,19 +5,21 @@ define(
|
|||
], function () {
|
||||
$(document).ready(function () {
|
||||
|
||||
var _window = $(window);
|
||||
var _scrollButton = $('#scroll-up');
|
||||
|
||||
$(window).scroll(function () {
|
||||
if ($(this).scrollTop() > 100) {
|
||||
$('#scroll-up').fadeIn();
|
||||
if (_window.scrollTop() > 100) {
|
||||
_scrollButton.fadeIn();
|
||||
}
|
||||
else {
|
||||
$('#scroll-up').fadeOut();
|
||||
_scrollButton.fadeOut();
|
||||
}
|
||||
});
|
||||
|
||||
$('#scroll-up').click(function () {
|
||||
_scrollButton.click(function () {
|
||||
$("html, body").animate({ scrollTop: 0 }, 600);
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue