From 73a844eb71ce852b7f03bfcb0bda97cb6aa307f0 Mon Sep 17 00:00:00 2001 From: eb041592 <35889760+eb041592@users.noreply.github.com> Date: Sat, 3 Feb 2018 16:34:22 +0100 Subject: [PATCH] Fixed error with "... added" notifications --- htdocs/js/mpd.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js index 6c8841a..99fc70f 100644 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@ -395,7 +395,7 @@ function webSocketConnect() { socket.send(onClickAction + "," + decodeURI($(this).parents("tr").attr("uri"))); $('.top-right').notify({ message:{ - text: $('td:nth-child(2)', $(this).parents("tr")).text() + " added" + text: "\"" + $('td:nth-last-child(3)', $(this).parents("tr")).text() + "\" added" } }).show(); }).fadeTo('fast',1); } @@ -429,7 +429,7 @@ function webSocketConnect() { socket.send("MPD_API_ADD_TRACK," + decodeURI($(this).attr("uri"))); $('.top-right').notify({ message:{ - text: $('td:nth-child(2)', this).text() + " added" + text: "\"" + $('td:nth-last-child(3)', this).text() + "\" added" } }).show(); break; @@ -437,7 +437,7 @@ function webSocketConnect() { socket.send("MPD_API_ADD_PLAYLIST," + decodeURI($(this).attr("uri"))); $('.top-right').notify({ message:{ - text: "Playlist " + $('td:nth-child(2)', this).text() + " added" + text: "\"" + $('td:nth-last-child(3)', this).text() + "\" added" } }).show(); break; -- 2.20.1