1
0
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:
Taloth Saldono
2015-02-13 22:06:20 +01:00
parent 44928c8f64
commit 70bfad4e6a
24 changed files with 716 additions and 490 deletions
+6 -8
View File
@@ -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;
});
});