Skip to content

Commit

Permalink
Show player on play
Browse files Browse the repository at this point in the history
  • Loading branch information
popeen committed Sep 15, 2020
1 parent ab12ca5 commit a14d45c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions airsonic-main/src/main/webapp/WEB-INF/jsp/playQueue.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@
}
function onPlay(id) {
playQueueService.play(id, playQueueCallback);
showLeftFrame();
}
function onPlayShuffle(albumListType, offset, size, genre, decade) {
playQueueService.playShuffle(albumListType, offset, size, genre, decade, playQueueCallback);
Expand Down Expand Up @@ -1010,6 +1011,27 @@
}
}
function showLeftFrame() {
$("#show-left-frame").hide();
$("#hide-left-frame").show();
toggleLeftFrame(420);
multiService.setShowSideBar(true);
showSideBar = true;
}
function toggleLeftFrame(width) {
<%-- Disable animation in Chrome. It stopped working in Chrome 44. --%>
var duration = navigator.userAgent.indexOf("Chrome") != -1 ? 0 : 400;
$("#dummy-animation-target").stop();
$("#dummy-animation-target").animate({"max-width": width}, {
step: function (now, fx) {
top.document.getElementById("mainFrameset").cols = now + ",*";
},
duration: duration
});
}
</script>

<!--
Expand Down

0 comments on commit a14d45c

Please sign in to comment.