Merge from CVS HEAD: Bug #8345 (IE8 and javascript)
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 16 Jun 2009 16:47:47 +0000 (10:47 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 16 Jun 2009 16:56:45 +0000 (10:56 -0600)
imp/docs/CHANGES
imp/templates/common-header.inc

index a63b594..f8cd7ec 100644 (file)
@@ -83,6 +83,8 @@ v5.0-git
 v4.3.5-cvs
 ----------
 
+[mms] Fix some javascript if using IE 8 (uses IE 7 compatibility mode) (Bug
+      #8345).
 [jan] Allow to lock default_encrypt preference.
 [mjr] Add example hook showing how to set the add_source preference (Bug #8285).
 [mms] Fix unqualified domain preference (Bug #8272).
index 569dd1a..dc86de1 100644 (file)
@@ -13,6 +13,10 @@ if (!empty($title)) $page_title .= ' :: ' . $title;
 if (!empty($refresh_time) && !empty($refresh_url)) {
     echo "<meta http-equiv=\"refresh\" content=\"$refresh_time;url=$refresh_url\" />\n";
 }
+if ($GLOBALS['browser']->isBrowser('msie') &&
+    ($GLOBALS['browser']->getMajor() == 8)) {
+    echo '<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />' . "\n";
+}
 echo Horde_Util::bufferOutput('require', IMP_TEMPLATES . '/javascript_defs.php');
 IMP::includeScriptFiles();
 IMP::includeStylesheetFiles(!empty($printer_friendly));