mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-27 22:57:09 -04:00
UI Cleanup - Updated Instrumentation, jQuery and Mixins subtrees.
This commit is contained in:
@@ -1,23 +1,21 @@
|
||||
var $ = require('jquery');
|
||||
var _ = require('underscore');
|
||||
|
||||
|
||||
$(document).ready(function(){
|
||||
$(document).ready(function() {
|
||||
var _window = $(window);
|
||||
var _scrollButton = $('#scroll-up');
|
||||
|
||||
var _scrollHandler = function(){
|
||||
if(_window.scrollTop() > 100) {
|
||||
var _scrollHandler = function() {
|
||||
if (_window.scrollTop() > 100) {
|
||||
_scrollButton.fadeIn();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
_scrollButton.fadeOut();
|
||||
}
|
||||
};
|
||||
|
||||
$(window).scroll(_.throttle(_scrollHandler, 500));
|
||||
_scrollButton.click(function(){
|
||||
$('html, body').animate({scrollTop : 0}, 600);
|
||||
_scrollButton.click(function() {
|
||||
$('html, body').animate({ scrollTop : 0 }, 600);
|
||||
return false;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user