mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Filemanager: use pushAvailable() to decide if we need a full refresh
This commit is contained in:
parent
5302675aac
commit
f2c763dc4d
@ -540,10 +540,20 @@ 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)
|
||||
for(let file in _data.uploaded)
|
||||
{
|
||||
if(_data.uploaded[file].confirm && !_data.uploaded[file].confirmed)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user