From 804ba60ce3c704704ff081e2e8ca7f128b44b63e Mon Sep 17 00:00:00 2001 From: Mike Hatfield Date: Sat, 8 Dec 2007 01:57:26 +0000 Subject: [PATCH] PNG behaviour for IE6. Activates on IMG tags only (i.e. not backgrounds) git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@7602 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../org/alfresco/web/ui/repo/tag/PageTag.java | 18 +++ source/web/css/ie6.css | 8 ++ source/web/images/parts/blank.gif | Bin 0 -> 49 bytes source/web/scripts/iepngfix.htc | 103 ++++++++++++++++++ 4 files changed, 129 insertions(+) create mode 100644 source/web/css/ie6.css create mode 100644 source/web/images/parts/blank.gif create mode 100644 source/web/scripts/iepngfix.htc diff --git a/source/java/org/alfresco/web/ui/repo/tag/PageTag.java b/source/java/org/alfresco/web/ui/repo/tag/PageTag.java index 90d77c4a96..2540f1a5a0 100644 --- a/source/java/org/alfresco/web/ui/repo/tag/PageTag.java +++ b/source/java/org/alfresco/web/ui/repo/tag/PageTag.java @@ -48,6 +48,8 @@ public class PageTag extends TagSupport private final static String SCRIPTS_END = "\">\n"; private final static String STYLES_START = "\n"; + private final static String IE6COND_START = "\n"; private final static String[] SCRIPTS = { @@ -77,6 +79,11 @@ public class PageTag extends TagSupport "/css/picker.css" }; + private final static String[] IE6COND_CSS = + { + "/css/ie6.css" + }; + /** * Please ensure you understand the terms of the license before changing the contents of this file. */ @@ -235,6 +242,17 @@ public class PageTag extends TagSupport out.write(STYLES_MAIN); } + // IE6COND_CSS style includes + out.write(IE6COND_START); + for (final String ie6cond_css : PageTag.IE6COND_CSS) + { + out.write(STYLES_START); + out.write(reqPath); + out.write(ie6cond_css); + out.write(STYLES_MAIN); + } + out.write(IE6COND_END); + // JavaScript includes for (final String s : PageTag.SCRIPTS) { diff --git a/source/web/css/ie6.css b/source/web/css/ie6.css new file mode 100644 index 0000000000..bfa2999557 --- /dev/null +++ b/source/web/css/ie6.css @@ -0,0 +1,8 @@ +/* IE6 Fixes */ + +/* + *** .png fix + */ +img { + behavior: url(/alfresco/scripts/iepngfix.htc) +} diff --git a/source/web/images/parts/blank.gif b/source/web/images/parts/blank.gif new file mode 100644 index 0000000000000000000000000000000000000000..75b945d2553848b8b6f41fe5e24599c0687b8472 GIT binary patch literal 49 zcmZ?wbhEHbWMp7unE0RJ|Ns9C3=9Vj8~~DvKUo+V7?>DzfNY>Fh|Ltj$Y2csQN9XW literal 0 HcmV?d00001 diff --git a/source/web/scripts/iepngfix.htc b/source/web/scripts/iepngfix.htc new file mode 100644 index 0000000000..858f207d33 --- /dev/null +++ b/source/web/scripts/iepngfix.htc @@ -0,0 +1,103 @@ + + + + + \ No newline at end of file