[geeklog-cvs] geeklog: Updated fix_html.js file for Professional_CSS theme to ...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Thu Apr 28 12:24:40 EDT 2011


changeset 8256:cedcb0ec389d
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/cedcb0ec389d
user: Tom <websitemaster at cogeco.net>
date: Thu Apr 28 12:18:32 2011 -0400
description:
Updated fix_html.js file for Professional_CSS theme to take into account IE 9 (Patch by Ivy)

diffstat:

 public_html/layout/professional_css/javascript/fix_html.js |  58 +++++++-------
 1 files changed, 29 insertions(+), 29 deletions(-)

diffs (62 lines):

diff -r 5a57074dcd8c -r cedcb0ec389d public_html/layout/professional_css/javascript/fix_html.js
--- a/public_html/layout/professional_css/javascript/fix_html.js	Tue Apr 26 11:49:48 2011 -0400
+++ b/public_html/layout/professional_css/javascript/fix_html.js	Thu Apr 28 12:18:32 2011 -0400
@@ -1,29 +1,29 @@
-function FixHTML( leftblocksID, centerblocksID, rightblocksID ) {
-  var ua = navigator.userAgent.toLowerCase();
-  var is_old_ie = (ua.indexOf("msie") != -1) && (ua.indexOf("msie 8") == -1) && (ua.indexOf("opera") == -1);
-
-  var leftblocks = document.getElementById(leftblocksID);
-  var centerblocks = document.getElementById(centerblocksID);
-  var rightblocks = document.getElementById(rightblocksID);
-
-
-
-  if ( document.body.getAttribute('class') || document.body.getAttribute('className') ) {
-    var classValue = 'left-center-right';
-
-    /* Check HTML id attribute. */
-    if ( leftblocks && centerblocks && !rightblocks ) classValue = 'left-center';
-    if ( !leftblocks && centerblocks && rightblocks ) classValue = 'center-right';
-    if ( !leftblocks && centerblocks && !rightblocks ) classValue = 'center';
-
-    /* Set js_on to body class attribute  */
-    classValue += ' js_on';
-
-    /* Set body class attribute by HTML structure. */
-    if ( is_old_ie ) {  /* IE7, IE6 */
-      document.body.setAttribute('className', classValue);
-    } else {  /* Gecko, Opera, Safari, IE8 and other */
-      document.body.setAttribute('class', classValue);
-    }
-  }
-}
+function FixHTML( leftblocksID, centerblocksID, rightblocksID ) {
+  var ua = navigator.userAgent.toLowerCase();
+  var is_old_ie = (ua.indexOf("msie") != -1) && (ua.indexOf("msie 8") == -1) && (ua.indexOf("msie 9.0") == -1) && (ua.indexOf("opera") == -1);
+
+  var leftblocks = document.getElementById(leftblocksID);
+  var centerblocks = document.getElementById(centerblocksID);
+  var rightblocks = document.getElementById(rightblocksID);
+
+
+
+  if ( document.body.getAttribute('class') || document.body.getAttribute('className') ) {
+    var classValue = 'left-center-right';
+
+    /* Check HTML id attribute. */
+    if ( leftblocks && centerblocks && !rightblocks ) classValue = 'left-center';
+    if ( !leftblocks && centerblocks && rightblocks ) classValue = 'center-right';
+    if ( !leftblocks && centerblocks && !rightblocks ) classValue = 'center';
+
+    /* Set js_on to body class attribute  */
+    classValue += ' js_on';
+
+    /* Set body class attribute by HTML structure. */
+    if ( is_old_ie ) {  /* IE8, IE7, IE6 */
+      document.body.setAttribute('className', classValue);
+    } else {  /* Gecko, Opera, Safari, IE9 and other */
+      document.body.setAttribute('class', classValue);
+    }
+  }
+}



More information about the geeklog-cvs mailing list