better IE8 support.

This commit is contained in:
Heng Sin Low 2010-09-13 23:43:47 +08:00
parent 7d17e9719c
commit 892e44ae17
3 changed files with 1231 additions and 5 deletions

View File

@ -565,7 +565,7 @@ public final class AEnv
}
/**
* @return true if user agent is internet explorer
* @return true if user agent is internet explorer 7 or lower
*/
public static boolean isInternetExplorer()
{
@ -575,10 +575,7 @@ public final class AEnv
Object n = execution.getNativeRequest();
if (n instanceof ServletRequest) {
String userAgent = Servlets.getUserAgent((ServletRequest) n);
if (userAgent.indexOf("MSIE ") >= 0) {
return true;
}
return Servlets.isExplorer((ServletRequest) n);
}
return false;
}

File diff suppressed because it is too large Load Diff

View File

@ -4,6 +4,7 @@ Copyright (C) 2007 Ashley G Ramdass.
-->
<?page style="height:100%"?>
<?init zscript="theme.zs" ?>
<?meta http-equiv="X-UA-Compatible" content="IE=8" ?>
<?link rel="icon" type="image/png" href="${browserIcon}"?>
<?link rel="stylesheet" type="text/css" href="${themeStyleSheet}"?>
<?link rel="stylesheet" type="text/css" href="${themeStyleSheetByBrowser}"?>