Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Commit

Permalink
Fix issue when disabled coverflow
Browse files Browse the repository at this point in the history
  • Loading branch information
vincelwt committed Aug 27, 2016
1 parent c1247ce commit ec17f6d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ function getData() {
}

function changeActiveTab(activeTab, keep_search, noRefresh) {

removeClass(settings.activeTab, "active");
addClass(activeTab, "active");

Expand All @@ -194,7 +193,7 @@ function changeActiveTab(activeTab, keep_search, noRefresh) {
if (!keep_search) document.getElementById("search").value = ""; // Reset search

if (!noRefresh && //Cause we only use noRefresh on coverflow update, so we evitate an infinite loop
settings.layout == "coverflow" &&
settings.coverflow && settings.layout == "coverflow" &&
settings.activeTab.indexOf('Playlist') > -1 && settings.activeTab != "spotifyPlaylistFavs" &&
activeTab.indexOf('Playlist') > -1 && activeTab != "spotifyPlaylistFavs") {

Expand All @@ -213,7 +212,6 @@ function changeActiveTab(activeTab, keep_search, noRefresh) {
}

function updateLayout() {
console.log
setTimeout(function(){ // Async so it doesn't block the activetab changing process on loading large lists
if (settings.layout == 'list' || settings.activeTab == "soundcloudStream" || !settings.coverflow) { //Soundcloud isn't adapted to coverflow view

Expand Down

0 comments on commit ec17f6d

Please sign in to comment.