Author: nathangray
New Revision: 54990
URL: http://svn.stylite.de/viewvc/egroupware?rev=54990&view=rev
Log:
Reduce back-to-back resize requests by cancelling the timeout before setting it again
Modified:
trunk/etemplate/js/etemplate2.js
— trunk/etemplate/js/etemplate2.js (original)
+++ trunk/etemplate/js/etemplate2.js Thu Feb 11 21:20:46 2016
@@ -142,7 +142,12 @@
//@TODO implement getaccess height for other framework and remove
if (typeof event != ‘undefined’ && event.type == ‘resize’)
{
-
if(this.resize_timeout)
-
{
-
clearTimeout(this.resize_timeout);
-
}
-
this.resize_timeout = setTimeout(function(){
-
self.resize_timeout = false;
if (self.widgetContainer)
{
var appHeader = $j('#divAppboxHeader');
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs