mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 17:32: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);
|
||||
}, 1);
|
||||
|
||||
toast.inf(1.5, 'cut ' + sel.length + ' items');
|
||||
jwrite('fman_clip', vps);
|
||||
r.tx(1);
|
||||
try {
|
||||
vps = JSON.stringify(vps);
|
||||
if (vps.length > 1024 * 1024)
|
||||
throw 'a';
|
||||
|
||||
swrite('fman_clip', vps);
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue