diff --git a/UI/AddSeries/Existing/UnmappedFolderCompositeViewTemplate.html b/UI/AddSeries/Existing/UnmappedFolderCompositeViewTemplate.html index bd4871a49..ba6d0432d 100644 --- a/UI/AddSeries/Existing/UnmappedFolderCompositeViewTemplate.html +++ b/UI/AddSeries/Existing/UnmappedFolderCompositeViewTemplate.html @@ -20,5 +20,4 @@
-
diff --git a/UI/AddSeries/RootFolders/RootFolderSelectionPartial.html b/UI/AddSeries/RootFolders/RootFolderSelectionPartial.html index c0489dd8c..3655b24bb 100644 --- a/UI/AddSeries/RootFolders/RootFolderSelectionPartial.html +++ b/UI/AddSeries/RootFolders/RootFolderSelectionPartial.html @@ -4,5 +4,3 @@ {{/each}} - -{{debug}} diff --git a/UI/AddSeries/SearchResultTemplate.html b/UI/AddSeries/SearchResultTemplate.html index da6a2ec73..752ab0301 100644 --- a/UI/AddSeries/SearchResultTemplate.html +++ b/UI/AddSeries/SearchResultTemplate.html @@ -2,8 +2,7 @@
- +
@@ -29,4 +28,3 @@
-{{debug}} diff --git a/UI/Cells/SeriesTitleTemplate.html b/UI/Cells/SeriesTitleTemplate.html index 4b65dc63a..b4786d5b1 100644 --- a/UI/Cells/SeriesTitleTemplate.html +++ b/UI/Cells/SeriesTitleTemplate.html @@ -1,2 +1 @@ {{title}} -{{debug}} diff --git a/UI/Series/EpisodeCollection.js b/UI/Series/EpisodeCollection.js index 123eccf47..e04dead48 100644 --- a/UI/Series/EpisodeCollection.js +++ b/UI/Series/EpisodeCollection.js @@ -1,4 +1,4 @@ -'use strict'; +'use strict'; define( [ 'backbone', diff --git a/UI/jQuery/ToTheTop.js b/UI/jQuery/ToTheTop.js index 98de3968c..401987ef2 100644 --- a/UI/jQuery/ToTheTop.js +++ b/UI/jQuery/ToTheTop.js @@ -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; }); - }); });