[evolvis-commits] r17656: [#2030] awstats-integration pending merges:↵ Thorsten Glaser 2011-10-28 integrate better with the DOM of the new Evolvis theme to be↵ Thorsten Glaser 2011-10-28 drop SVN RCSid

mirabilos at evolvis.org mirabilos at evolvis.org
Fri Oct 28 19:29:47 CEST 2011


Author: mirabilos
Date: 2011-10-28 19:29:47 +0200 (Fri, 28 Oct 2011)
New Revision: 17656

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/www/js/awstats_misc_tracker.js
Log:
[#2030] awstats-integration pending merges:
  Thorsten Glaser 2011-10-28 integrate better with the DOM of the new Evolvis theme to be
    Thorsten Glaser 2011-10-28 drop SVN RCSid


Modified: trunk/gforge_base/evolvisforge-5.1/src/www/js/awstats_misc_tracker.js
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/js/awstats_misc_tracker.js	2011-10-28 17:29:43 UTC (rev 17655)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/js/awstats_misc_tracker.js	2011-10-28 17:29:47 UTC (rev 17656)
@@ -1,5 +1,3 @@
-// $Id$
-
 // awstats_misc_tracker.js
 //-------------------------------------------------------------------
 // You can add this file onto some of your web pages (main home page can
@@ -154,7 +152,11 @@
         l.setAttribute("height", "0");
         l.setAttribute("width", "0");
         l.setAttribute("border", "0");
-        document.getElementsByTagName("body")[0].appendChild(l);
+	var e = document.getElementById("ev_awstats");
+	if (!e) {
+		e = getElementsByTagName("body")[0];
+	}
+	e.appendChild(l);
 	} else {
 		document.write('<img style="display:none;" src="'+ imgsrc +'" height="0" width="0" border="0" />')
 	}



More information about the evolvis-commits mailing list