mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
Do not register dataCache for popups
This commit is contained in:
parent
2926ab109d
commit
311d5fa4dd
@ -65,22 +65,22 @@ app.classes.mail = AppJS.extend(
|
|||||||
*/
|
*/
|
||||||
init: function() {
|
init: function() {
|
||||||
this._super.apply(this,arguments);
|
this._super.apply(this,arguments);
|
||||||
|
if (!this.egw.is_popup())
|
||||||
// Turn on client side, persistent cache
|
// Turn on client side, persistent cache
|
||||||
// egw.data system runs encapsulated below etemplate, so this must be
|
// egw.data system runs encapsulated below etemplate, so this must be
|
||||||
// done before the nextmatch is created.
|
// done before the nextmatch is created.
|
||||||
this.egw.dataCacheRegister('mail',
|
this.egw.dataCacheRegister('mail',
|
||||||
// Called to determine cache key
|
// Called to determine cache key
|
||||||
this.nm_cache,
|
this.nm_cache,
|
||||||
// Called whenever cache is used
|
// Called whenever cache is used
|
||||||
// TODO: Change this as needed
|
// TODO: Change this as needed
|
||||||
function(server_query)
|
function(server_query)
|
||||||
{
|
{
|
||||||
// Unlock tree if using a cache, since the server won't
|
// Unlock tree if using a cache, since the server won't
|
||||||
if(!server_query) this.unlock_tree();
|
if(!server_query) this.unlock_tree();
|
||||||
},
|
},
|
||||||
this
|
this
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user