mirror of
https://github.com/9001/copyparty.git
synced 2026-06-19 04:32:26 -06:00
closes #709 re-empower search by letting user select items
This commit is contained in:
parent
8e76745fb6
commit
bcdebc0dbc
|
|
@ -6345,7 +6345,7 @@ window.thegrid = (function () {
|
|||
td = oth.closest('td').nextSibling,
|
||||
tr = td.parentNode;
|
||||
|
||||
if (!is_srch && ((r.sel && !dbl && !ctrl(e)) || (treectl.csel && (e.shiftKey || ctrl(e))))) {
|
||||
if (r.sel && !dbl && !ctrl(e) || treectl.csel && (e.shiftKey || ctrl(e))) {
|
||||
ev(e);
|
||||
td.onclick.call(td, e);
|
||||
if (e.shiftKey)
|
||||
|
|
@ -6554,13 +6554,6 @@ window.thegrid = (function () {
|
|||
clmod(ggrid, 'crop', r.crop);
|
||||
clmod(ggrid, 'nocrop', !r.crop);
|
||||
|
||||
var srch = ebi('unsearch'),
|
||||
gsel = ebi('gridsel');
|
||||
|
||||
gsel.style.display = srch ? 'none' : '';
|
||||
if (srch && r.sel)
|
||||
gsel.click();
|
||||
|
||||
var ths = QSA('#ggrid>a');
|
||||
for (var a = 0, aa = ths.length; a < aa; a++) {
|
||||
ths[a].ondblclick = gclick2;
|
||||
|
|
@ -9697,8 +9690,7 @@ var msel = (function () {
|
|||
if (item.sel)
|
||||
r.sel.push(item);
|
||||
|
||||
if (!is_srch)
|
||||
links[a].closest('tr').setAttribute('tabindex', '0');
|
||||
links[a].closest('tr').setAttribute('tabindex', '0');
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -9855,9 +9847,8 @@ var msel = (function () {
|
|||
var tds = QSA('#files tbody td+td+td'),
|
||||
is_srch = !!ebi('unsearch');
|
||||
|
||||
if (!is_srch)
|
||||
for (var a = 0, aa = tds.length; a < aa; a++)
|
||||
tds[a].onclick = r.seltgl;
|
||||
for (var a = 0, aa = tds.length; a < aa; a++)
|
||||
tds[a].onclick = r.seltgl;
|
||||
|
||||
r.selui(true);
|
||||
arcfmt.render();
|
||||
|
|
|
|||
Loading…
Reference in a new issue