mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-29 11:23:02 +02:00
fixed ToTheTop
This commit is contained in:
parent
0934900cab
commit
77fdd724f4
File diff suppressed because it is too large
Load Diff
@ -1,21 +1,24 @@
|
|||||||
var $ = require('jquery');
|
var $ = require('jquery');
|
||||||
require('bootstrap');
|
var _ = require('underscore');
|
||||||
|
|
||||||
module.exports = (function(){
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
var _window = $(window);
|
var _window = $(window);
|
||||||
var _scrollButton = $('#scroll-up');
|
var _scrollButton = $('#scroll-up');
|
||||||
$(window).scroll(function(){
|
|
||||||
if(_window.scrollTop() > 100) {
|
var _scrollHandler = function(){
|
||||||
_scrollButton.fadeIn();
|
if(_window.scrollTop() > 100) {
|
||||||
}
|
_scrollButton.fadeIn();
|
||||||
else {
|
}
|
||||||
_scrollButton.fadeOut();
|
else {
|
||||||
}
|
_scrollButton.fadeOut();
|
||||||
});
|
}
|
||||||
_scrollButton.click(function(){
|
};
|
||||||
$('html, body').animate({scrollTop : 0}, 600);
|
|
||||||
return false;
|
$(window).scroll(_.throttle(_scrollHandler, 500));
|
||||||
});
|
_scrollButton.click(function(){
|
||||||
|
$('html, body').animate({scrollTop : 0}, 600);
|
||||||
|
return false;
|
||||||
});
|
});
|
||||||
}).call(this);
|
});
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
var $ = require('jquery');
|
var $ = require('jquery');
|
||||||
var Backbone = require('backbone');
|
var Backbone = require('backbone');
|
||||||
var Marionette = require('marionette');
|
var Marionette = require('marionette');
|
||||||
var RouteBinder = require('./jQuery/RouteBinder');
|
var RouteBinder = require('./jQuery/RouteBinder');
|
||||||
@ -11,6 +11,8 @@ var ModalController = require('./Shared/Modal/ModalController');
|
|||||||
var ControlPanelController = require('./Shared/ControlPanel/ControlPanelController');
|
var ControlPanelController = require('./Shared/ControlPanel/ControlPanelController');
|
||||||
var serverStatusModel = require('./System/StatusModel');
|
var serverStatusModel = require('./System/StatusModel');
|
||||||
var Tooltip = require('./Shared/Tooltip');
|
var Tooltip = require('./Shared/Tooltip');
|
||||||
|
|
||||||
|
require('./jQuery/ToTheTop');
|
||||||
require('./Instrumentation/StringFormat');
|
require('./Instrumentation/StringFormat');
|
||||||
require('./LifeCycle');
|
require('./LifeCycle');
|
||||||
require('./Hotkeys/Hotkeys');
|
require('./Hotkeys/Hotkeys');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user