mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
listen to the linter
This commit is contained in:
parent
1034a51bd2
commit
126ecc55c3
|
@ -317,7 +317,7 @@ function seek_au_sec(seek) {
|
|||
if (mp.au === mp.au_native)
|
||||
// hack: ogv.js breaks on .play() during playback
|
||||
mp.au.play();
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
function song_skip(n) {
|
||||
|
@ -329,7 +329,7 @@ function song_skip(n) {
|
|||
play(mp.order.indexOf(tid) + n);
|
||||
else
|
||||
play(mp.order[0]);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
// hook up the widget buttons
|
||||
|
@ -618,13 +618,16 @@ function tree_neigh(n) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
a += n;
|
||||
if (a < 0)
|
||||
a = links.length - 1;
|
||||
if (a >= links.length)
|
||||
a = 0;
|
||||
if (act == -1)
|
||||
return;
|
||||
|
||||
links[a].click();
|
||||
act += n;
|
||||
if (act < 0)
|
||||
act = links.length - 1;
|
||||
if (act >= links.length)
|
||||
act = 0;
|
||||
|
||||
links[act].click();
|
||||
}
|
||||
|
||||
|
||||
|
@ -939,8 +942,7 @@ var treectl = (function () {
|
|||
tree.style.top = Math.max(0, parseInt(atop)) + 'px';
|
||||
}
|
||||
else {
|
||||
var wraph = parseInt(getComputedStyle(ebi('wrap').offsetParent).height),
|
||||
top = Math.max(0, parseInt(wrap.offsetTop)),
|
||||
var top = Math.max(0, parseInt(wrap.offsetTop)),
|
||||
treeh = (winh - atop) - 4;
|
||||
|
||||
tree.style.top = top + 'px';
|
||||
|
|
|
@ -374,7 +374,7 @@ function up2k_init(have_crypto) {
|
|||
for (var a = 0, aa = Math.min(20, bad_files.length); a < aa; a++)
|
||||
msg += '-- ' + bad_files[a] + '\n';
|
||||
|
||||
if (files.length - bad_files.length <= 1 && /(android)/i.test(navigator.userAgent))
|
||||
if (good_files.length - bad_files.length <= 1 && /(android)/i.test(navigator.userAgent))
|
||||
msg += '\nFirefox-Android has a bug which prevents selecting multiple files. Try selecting one file at a time. For more info, see firefox bug 1456557';
|
||||
|
||||
alert(msg);
|
||||
|
|
|
@ -119,7 +119,7 @@ function crc32(str) {
|
|||
crc = (crc >>> 8) ^ crctab[(crc ^ str.charCodeAt(i)) & 0xFF];
|
||||
}
|
||||
return ((crc ^ (-1)) >>> 0).toString(16);
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
function clmod(obj, cls, add) {
|
||||
|
|
Loading…
Reference in a new issue