Do not register dataCache for popups

This commit is contained in:
Hadi Nategh 2014-11-11 11:46:16 +00:00
parent 2926ab109d
commit 311d5fa4dd

View File

@ -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
); );
}, },
/** /**