From: eb041592 <35889760+eb041592@users.noreply.github.com> Date: Wed, 4 Apr 2018 20:00:32 +0000 (+0200) Subject: Reset #panel-heading-info on update of #panel-heading. X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=18417b9ed581270a829ad6cf946a8c530ecaa6e1;p=ympd.git Reset #panel-heading-info on update of #panel-heading. --- 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;