From 7f40f0b86e4994c923f1c4f9d8015b50219f4150 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Tue, 5 Apr 2016 13:22:01 +0100 Subject: [PATCH] Another attempt at filtering #32 --- PlexRequests.UI/Content/requests.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/PlexRequests.UI/Content/requests.js b/PlexRequests.UI/Content/requests.js index b1efdbeca..a25d23363 100644 --- a/PlexRequests.UI/Content/requests.js +++ b/PlexRequests.UI/Content/requests.js @@ -37,6 +37,7 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { var $ml = $('#movieList'); var $tvl = $('#tvList'); + var $musicL = $('#musicList'); $('.approve-category').hide(); if (target === "#TvShowTab") { @@ -57,7 +58,16 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { if ($ml.mixItUp('isLoaded')) $ml.mixItUp('destroy'); $ml.mixItUp(mixItUpConfig(activeState)); // init or reinit } - //$('.mix[data-bound]').removeAttr('data-bound'); + + if (target === "#MusicTab") { + $('#approveMusic').show(); + if ($musicL.mixItUp('isLoaded')) { + activeState = $musicL.mixItUp('getState'); + $musicL.mixItUp('destroy'); + } + if ($musicL.mixItUp('isLoaded')) $ml.mixItUp('destroy'); + $musicL.mixItUp(mixItUpConfig(activeState)); // init or reinit + } }); // Approve all @@ -424,7 +434,6 @@ function initLoad() { movieLoad(); tvLoad(); albumLoad(); - //noResultsMusic } function movieLoad() {