mirror of
https://github.com/9001/copyparty.git
synced 2025-08-19 01:42:20 -06:00
support massive cut/paste ops
This commit is contained in:
parent
1b14eb7959
commit
5e34463c77
|
@ -2089,9 +2089,18 @@ var fileman = (function () {
|
||||||
clmod(els[a], 'fcut', 1);
|
clmod(els[a], 'fcut', 1);
|
||||||
}, 1);
|
}, 1);
|
||||||
|
|
||||||
toast.inf(1.5, 'cut ' + sel.length + ' items');
|
try {
|
||||||
jwrite('fman_clip', vps);
|
vps = JSON.stringify(vps);
|
||||||
|
if (vps.length > 1024 * 1024)
|
||||||
|
throw 'a';
|
||||||
|
|
||||||
|
swrite('fman_clip', vps);
|
||||||
r.tx(1);
|
r.tx(1);
|
||||||
|
toast.inf(1.5, 'cut ' + sel.length + ' items');
|
||||||
|
}
|
||||||
|
catch (ex) {
|
||||||
|
toast.warn(30, 'cut ' + sel.length + ' items\n\nbut: only <b>this</b> browser-tab can paste them\n(since the selection is so absolutely massive)');
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
r.paste = function (e) {
|
r.paste = function (e) {
|
||||||
|
|
Loading…
Reference in a new issue