From 26b4f66fab390a46ec66d1fb70c282e13d489776 Mon Sep 17 00:00:00 2001 From: jcorporation Date: Tue, 29 May 2018 18:27:17 +0200 Subject: [PATCH] Fixed issue #5 --- htdocs/js/mpd.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/htdocs/js/mpd.js b/htdocs/js/mpd.js index 004b97f..ac6cfba 100644 --- a/htdocs/js/mpd.js +++ b/htdocs/js/mpd.js @@ -279,23 +279,23 @@ function webSocketConnect() { if ( isTouch ) { $('#queueList > tbody > tr > td:last-child').append( - "" + - "delete"); + '' + + 'delete'); } else { $('#queueList > tbody > tr').on({ mouseover: function(){ var doomed = $(this); if ( $('#btntrashmodeup').hasClass('btn-success') ) - doomed = $("#queueList > tbody > tr:lt(" + ($(this).index() + 1) + ")"); + doomed = $('#queueList > tbody > tr:lt(' + ($(this).index() + 1) + ')'); if ( $('#btntrashmodedown').hasClass('btn-success') ) - doomed = $("#queueList > tbody > tr:gt(" + ($(this).index() - 1) + ")"); + doomed = $('#queueList > tbody > tr:gt(' + ($(this).index() - 1) + ')'); $.each(doomed, function(){ if($(this).children().last().has("a").length == 0) $(this).children().last().append( - "" + - "delete") + '' + + 'delete') .find('a').fadeTo('fast',1); }); },