fix filedrop trying to upload without write access

This commit is contained in:
ed 2021-09-08 00:19:48 +02:00
parent f273253a2b
commit c1bee96c40

View file

@ -715,13 +715,12 @@ function up2k_init(subtle) {
offdrag.bind(this)();
var dz = (this && this.getAttribute('id'));
if ((dz == 'up_dz' && fsearch) || (dz == 'srch_dz' && !fsearch)) {
var err = this.getAttribute('err');
if (err)
return modal.alert('sorry, ' + err);
var err = this.getAttribute('err');
if (err)
return modal.alert('sorry, ' + err);
if ((dz == 'up_dz' && fsearch) || (dz == 'srch_dz' && !fsearch))
tgl_fsearch();
}
if (!QS('#op_up2k.act'))
goto('up2k');