From badc6062fa7d2c2cd1dc4ab8098af16111bc48fe Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 28 Apr 2015 16:01:39 +0000 Subject: [PATCH] stop invalidation of not visible nextmatch, happens when switching from infolog to crm-view in addressbook --- etemplate/js/et2_extension_nextmatch.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/etemplate/js/et2_extension_nextmatch.js b/etemplate/js/et2_extension_nextmatch.js index bc46b724b8..a43793d7db 100644 --- a/etemplate/js/et2_extension_nextmatch.js +++ b/etemplate/js/et2_extension_nextmatch.js @@ -308,6 +308,14 @@ var et2_nextmatch = et2_DOMWidget.extend([et2_IResizeable, et2_IInput, et2_IPrin }); } } + // stop invalidation in no visible tabs + $j(this.getInstanceManager().DOMContainer.parentNode).on('hide.et2_nextmatch', jQuery.proxy(function(e) { + this.controller._grid.doInvalidate = false; + },this)); + $j(this.getInstanceManager().DOMContainer.parentNode).on('show.et2_nextmatch', jQuery.proxy(function(e) { + this.controller._grid.doInvalidate = true; + },this)); + return true; },