mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 09:22:31 -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)
|
if (mp.au === mp.au_native)
|
||||||
// hack: ogv.js breaks on .play() during playback
|
// hack: ogv.js breaks on .play() during playback
|
||||||
mp.au.play();
|
mp.au.play();
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|
||||||
function song_skip(n) {
|
function song_skip(n) {
|
||||||
|
@ -329,7 +329,7 @@ function song_skip(n) {
|
||||||
play(mp.order.indexOf(tid) + n);
|
play(mp.order.indexOf(tid) + n);
|
||||||
else
|
else
|
||||||
play(mp.order[0]);
|
play(mp.order[0]);
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|
||||||
// hook up the widget buttons
|
// hook up the widget buttons
|
||||||
|
@ -618,13 +618,16 @@ function tree_neigh(n) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
a += n;
|
if (act == -1)
|
||||||
if (a < 0)
|
return;
|
||||||
a = links.length - 1;
|
|
||||||
if (a >= links.length)
|
|
||||||
a = 0;
|
|
||||||
|
|
||||||
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';
|
tree.style.top = Math.max(0, parseInt(atop)) + 'px';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var wraph = parseInt(getComputedStyle(ebi('wrap').offsetParent).height),
|
var top = Math.max(0, parseInt(wrap.offsetTop)),
|
||||||
top = Math.max(0, parseInt(wrap.offsetTop)),
|
|
||||||
treeh = (winh - atop) - 4;
|
treeh = (winh - atop) - 4;
|
||||||
|
|
||||||
tree.style.top = top + 'px';
|
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++)
|
for (var a = 0, aa = Math.min(20, bad_files.length); a < aa; a++)
|
||||||
msg += '-- ' + bad_files[a] + '\n';
|
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';
|
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);
|
alert(msg);
|
||||||
|
|
|
@ -119,7 +119,7 @@ function crc32(str) {
|
||||||
crc = (crc >>> 8) ^ crctab[(crc ^ str.charCodeAt(i)) & 0xFF];
|
crc = (crc >>> 8) ^ crctab[(crc ^ str.charCodeAt(i)) & 0xFF];
|
||||||
}
|
}
|
||||||
return ((crc ^ (-1)) >>> 0).toString(16);
|
return ((crc ^ (-1)) >>> 0).toString(16);
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|
||||||
function clmod(obj, cls, add) {
|
function clmod(obj, cls, add) {
|
||||||
|
|
Loading…
Reference in a new issue