mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
fix filedrop trying to upload without write access
This commit is contained in:
parent
f273253a2b
commit
c1bee96c40
|
@ -715,13 +715,12 @@ function up2k_init(subtle) {
|
||||||
offdrag.bind(this)();
|
offdrag.bind(this)();
|
||||||
var dz = (this && this.getAttribute('id'));
|
var dz = (this && this.getAttribute('id'));
|
||||||
|
|
||||||
if ((dz == 'up_dz' && fsearch) || (dz == 'srch_dz' && !fsearch)) {
|
|
||||||
var err = this.getAttribute('err');
|
var err = this.getAttribute('err');
|
||||||
if (err)
|
if (err)
|
||||||
return modal.alert('sorry, ' + err);
|
return modal.alert('sorry, ' + err);
|
||||||
|
|
||||||
|
if ((dz == 'up_dz' && fsearch) || (dz == 'srch_dz' && !fsearch))
|
||||||
tgl_fsearch();
|
tgl_fsearch();
|
||||||
}
|
|
||||||
|
|
||||||
if (!QS('#op_up2k.act'))
|
if (!QS('#op_up2k.act'))
|
||||||
goto('up2k');
|
goto('up2k');
|
||||||
|
|
Loading…
Reference in a new issue