TPAC: Prevent IE compatibility view
authorDan Scott <dscott@laurentian.ca>
Tue, 24 Sep 2013 14:51:36 +0000 (10:51 -0400)
committerDan Wells <dbw2@calvin.edu>
Wed, 25 Sep 2013 22:45:14 +0000 (18:45 -0400)
Windows XP has IE8, and it can handle the CSS we have in the TPAC.
However, the "compatibility view" button, if clicked, actually results
in horribly broken rendering (contrary to what one would expect).

 Adding this <meta> tag prevents the compatibility view button from
displaying and should improve the experience for users.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/templates/opac/parts/base.tt2

index 0e51783..95b3c31 100644 (file)
@@ -2,6 +2,7 @@
 <html lang='[% ctx.locale.replace('_', '-') %]'>
     <head>
         <meta charset="utf-8" />
 <html lang='[% ctx.locale.replace('_', '-') %]'>
     <head>
         <meta charset="utf-8" />
+        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
         [% IF ctx.refresh %]
         <meta http-equiv="refresh" content="[% ctx.refresh %]">
         [% ELSIF ctx.authtime %]
         [% IF ctx.refresh %]
         <meta http-equiv="refresh" content="[% ctx.refresh %]">
         [% ELSIF ctx.authtime %]