From f95faa3613d490eb18712667dd185facb4497421 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Tue, 16 Jun 2009 10:47:47 -0600 Subject: [PATCH] Merge from CVS HEAD: Bug #8345 (IE8 and javascript) --- imp/docs/CHANGES | 2 ++ imp/templates/common-header.inc | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/imp/docs/CHANGES b/imp/docs/CHANGES index a63b594bb..f8cd7ec20 100644 --- a/imp/docs/CHANGES +++ b/imp/docs/CHANGES @@ -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). diff --git a/imp/templates/common-header.inc b/imp/templates/common-header.inc index 569dd1af8..dc86de12f 100644 --- a/imp/templates/common-header.inc +++ b/imp/templates/common-header.inc @@ -13,6 +13,10 @@ if (!empty($title)) $page_title .= ' :: ' . $title; if (!empty($refresh_time) && !empty($refresh_url)) { echo "\n"; } +if ($GLOBALS['browser']->isBrowser('msie') && + ($GLOBALS['browser']->getMajor() == 8)) { + echo '' . "\n"; +} echo Horde_Util::bufferOutput('require', IMP_TEMPLATES . '/javascript_defs.php'); IMP::includeScriptFiles(); IMP::includeStylesheetFiles(!empty($printer_friendly)); -- 2.11.0