Reset #panel-heading-info on update of #panel-heading.
authoreb041592 <35889760+eb041592@users.noreply.github.com>
Wed, 4 Apr 2018 20:00:32 +0000 (22:00 +0200)
committereb041592 <35889760+eb041592@users.noreply.github.com>
Wed, 4 Apr 2018 21:06:19 +0000 (23:06 +0200)
htdocs/js/mpd.js

index 7765644..ef1ad1d 100644 (file)
@@ -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;