From 18417b9ed581270a829ad6cf946a8c530ecaa6e1 Mon Sep 17 00:00:00 2001 From: eb041592 <35889760+eb041592@users.noreply.github.com> Date: Wed, 4 Apr 2018 22:00:32 +0200 Subject: [PATCH] Reset #panel-heading-info on update of #panel-heading. --- htdocs/js/mpd.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js index 7765644..ef1ad1d 100644 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@ -45,6 +45,8 @@ var app = $.sammy(function() { socket.send('MPD_API_GET_QUEUE,'+pagination); $('#panel-heading').text("Queue"); + $('#panel-heading-info').empty(); + $('#queue').addClass('active'); } @@ -121,6 +123,8 @@ var app = $.sammy(function() { $('#dirble_right').find("tr:gt(0)").remove(); $('#panel-heading').text("Dirble"); + $('#panel-heading-info').empty(); + $('#dirble').addClass('active'); $('#next').addClass('hide'); @@ -147,6 +151,8 @@ var app = $.sammy(function() { $('#dirble_right').find("tr:gt(0)").remove(); $('#panel-heading').text("Dirble"); + $('#panel-heading-info').empty(); + $('#dirble').addClass('active'); dirble_stations = false; -- 2.20.1