From 9062ac6a23254b221487966ebcdd9348812d88f2 Mon Sep 17 00:00:00 2001 From: Jan Grewe <jan@faked.org> Date: Sun, 18 May 2014 20:28:15 +0200 Subject: [PATCH] fix loading indicator when loading movies --- js/mediarack.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/mediarack.js b/js/mediarack.js index 098acd6..1813d66 100644 --- a/js/mediarack.js +++ b/js/mediarack.js @@ -182,7 +182,6 @@ function getShows() { } function getEpisodes(show, season) { - $("#loading").show(); $.getJSON('api.php', { 'get': 'episodes', 'show': show, @@ -223,12 +222,12 @@ function getEpisodes(show, season) { getEpisodes($(this).parent().parent().parent().data('showid'), $(this).data('season')); }); }); - $("#loading").hide(); } ); } function getMovies() { + $("#loading").show(); $.getJSON('api.php', { 'get': 'movies', 'limit': movieLimit.toString(), @@ -281,6 +280,7 @@ function getMovies() { if(i > 0) { loadMovies = true; } + $("#loading").hide(); } ); } -- GitLab