# HG changeset patch # User Sylvain Thénault # Date 1303997352 -7200 # Node ID de8ae247bb04b486f9d169d2010906bd91ce125f # Parent 1d1446e9dfe28a859711fa20f79cb85986f3a3e0# Parent 2fe2ed459e4d2351e1d89f264c73346c1b5aaac4 merge oldstable diff -r 1d1446e9dfe2 -r de8ae247bb04 utils.py --- a/utils.py Wed Apr 27 16:10:10 2011 +0200 +++ b/utils.py Thu Apr 28 15:29:12 2011 +0200 @@ -230,7 +230,10 @@ Request objects use a HTMLHead instance to ease adding of javascripts and stylesheets """ - js_unload_code = u'jQuery(window).unload(unloadPageData);' + js_unload_code = u'''if (typeof(pageDataUnloaded) == 'undefined') { + jQuery(window).unload(unloadPageData); + pageDataUnloaded = true; +}''' # Making