mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Avoid extra request to server for update-in-place refresh
This commit is contained in:
parent
a43fc4bf20
commit
3ece75667d
@ -192,7 +192,12 @@ app.classes.mail = AppJS.extend(
|
|||||||
if(nm != null && (typeof jQuery._data(nm).events=='undefined'||typeof jQuery._data(nm).events.refresh == 'undefined'))
|
if(nm != null && (typeof jQuery._data(nm).events=='undefined'||typeof jQuery._data(nm).events.refresh == 'undefined'))
|
||||||
{
|
{
|
||||||
var self = this;
|
var self = this;
|
||||||
jQuery(nm).on('refresh',function() {self.mail_refreshFolderStatus.call(self,undefined,undefined,false);});
|
jQuery(nm).on('refresh',function(_event, _widget, _row_id, _type) {
|
||||||
|
if (_type !== 'update-in-place')
|
||||||
|
{
|
||||||
|
self.mail_refreshFolderStatus.call(self,undefined,undefined,false);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
var tree_wdg = this.et2.getWidgetById(this.nm_index+'[foldertree]');
|
var tree_wdg = this.et2.getWidgetById(this.nm_index+'[foldertree]');
|
||||||
if (tree_wdg)
|
if (tree_wdg)
|
||||||
|
Loading…
Reference in New Issue
Block a user