mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 12:21:26 +02:00
Filemanager: use pushAvailable() to decide if we need a full refresh
This commit is contained in:
parent
5302675aac
commit
f2c763dc4d
@ -540,7 +540,17 @@ export class filemanagerAPP extends EgwApp
|
||||
*/
|
||||
_upload_callback(_data)
|
||||
{
|
||||
if(_data.msg || _data.uploaded) window.egw_refresh(_data.msg, this.appname, undefined, undefined, undefined, undefined, undefined, _data.type);
|
||||
if(_data.msg || _data.uploaded)
|
||||
{
|
||||
if(this.egw.pushAvailable())
|
||||
{
|
||||
this.egw.message(_data.msg);
|
||||
}
|
||||
else
|
||||
{
|
||||
window.egw_refresh(_data.msg, this.appname, undefined, undefined, undefined, undefined, undefined, _data.type);
|
||||
}
|
||||
}
|
||||
|
||||
let that = this;
|
||||
for(let file in _data.uploaded)
|
||||
|
Loading…
x
Reference in New Issue
Block a user