mirror of
https://github.com/SuperBFG7/ympd
synced 2025-02-05 13:40:11 +00:00
Fixed issue #5: Removing track from queue redirects to Playback page
href in delete link must point to #/queue/<pagination>
This commit is contained in:
parent
9d1d406026
commit
05c80421d1
@ -285,15 +285,15 @@ function webSocketConnect() {
|
|||||||
mouseover: function(){
|
mouseover: function(){
|
||||||
var doomed = $(this);
|
var doomed = $(this);
|
||||||
if ( $('#btntrashmodeup').hasClass('btn-success') )
|
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') )
|
if ( $('#btntrashmodedown').hasClass('btn-success') )
|
||||||
doomed = $("#queueList > tbody > tr:gt(" + ($(this).index() - 1) + ")");
|
doomed = $('#queueList > tbody > tr:gt(' + ($(this).index() - 1) + ')');
|
||||||
$.each(doomed, function(){
|
$.each(doomed, function(){
|
||||||
if($(this).children().last().has("a").length == 0)
|
if($(this).children().last().has('a').length == 0)
|
||||||
$(this).children().last().append(
|
$(this).children().last().append(
|
||||||
"<a class=\"pull-right btn-group-hover color-darkgrey\" href=\"#/\" " +
|
'<a class="pull-right btn-group-hover color-darkgrey" href="#/queue/' + pagination + '" ' +
|
||||||
"onclick=\"trash($(this).parents('tr'));\">" +
|
'onclick="trash($(this).parents(\'tr\'));">' +
|
||||||
"<span class=\"material-icons\">delete</span></a>")
|
'<span class="material-icons">delete</span></a>')
|
||||||
.find('a').fadeTo('fast',1);
|
.find('a').fadeTo('fast',1);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user