mirror of
https://github.com/SuperBFG7/ympd
synced 2025-08-02 20:13:48 +00:00
Fixed issue #5
This commit is contained in:
parent
57f29afccd
commit
26b4f66fab
@ -279,23 +279,23 @@ function webSocketConnect() {
|
|||||||
|
|
||||||
if ( isTouch ) {
|
if ( isTouch ) {
|
||||||
$('#queueList > tbody > tr > td:last-child').append(
|
$('#queueList > tbody > tr > td:last-child').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>');
|
||||||
} else {
|
} else {
|
||||||
$('#queueList > tbody > tr').on({
|
$('#queueList > tbody > tr').on({
|
||||||
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