mirror of
https://github.com/9001/copyparty.git
synced 2026-06-21 05:32:25 -06:00
fix insta search on page load on IE
This commit is contained in:
parent
4e585c0ebf
commit
f421929f7b
|
|
@ -6926,7 +6926,9 @@ var search_ui = (function () {
|
||||||
clmod(ebi('srch_quickopts'), 'act', 't');
|
clmod(ebi('srch_quickopts'), 'act', 't');
|
||||||
}
|
}
|
||||||
folderSearch.oninput = function(){
|
folderSearch.oninput = function(){
|
||||||
var v = unsmart(this.value)
|
var v = unsmart(this.value);
|
||||||
|
if(IE && !v)
|
||||||
|
return;
|
||||||
var nsearch = ebi('srch_namev');
|
var nsearch = ebi('srch_namev');
|
||||||
nsearch.value = v;
|
nsearch.value = v;
|
||||||
nsearch.oninput();
|
nsearch.oninput();
|
||||||
|
|
@ -6953,6 +6955,7 @@ var search_ui = (function () {
|
||||||
is_txt = id.slice(-1) == 'v',
|
is_txt = id.slice(-1) == 'v',
|
||||||
is_chk = id.slice(-1) == 'c';
|
is_chk = id.slice(-1) == 'c';
|
||||||
|
|
||||||
|
console.log(id);
|
||||||
if (is_txt) {
|
if (is_txt) {
|
||||||
var chk = ebi(id.slice(0, -1) + 'c');
|
var chk = ebi(id.slice(0, -1) + 'c');
|
||||||
chk.checked = ((v + '').length > 0);
|
chk.checked = ((v + '').length > 0);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue