add prompt to install Google Chrome Frames when in IE
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Jun 2010 15:13:41 +0000 (15:13 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Jun 2010 15:13:41 +0000 (15:13 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16753 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/locale/en-US/opac.dtd
Open-ILS/web/opac/skin/default/xml/body.xml
Open-ILS/web/opac/skin/default/xml/header.xml
Open-ILS/web/opac/skin/default/xml/home/index_body.xml

index 62239f8..959c4b5 100644 (file)
 <!ENTITY common.textsize.regular "Regular">
 <!ENTITY common.textsize.separator "/"> <!-- Regular / Large -->
 <!ENTITY common.textsize.large "Large">
+<!ENTITY common.googlechromeframe.why "Installing the Google Chrome Frame plugin for Internet Explorer will improve your Evergreen experience with more speed and advanced features!">
+<!ENTITY common.googlechromeframe.install "Install Now!">
+<!ENTITY common.googlechromeframe.dontask "Don't ask me again">
 
 <!ENTITY home.js.disabled "JavaScript must be enabled in order for you to use the regular Evergreen Catalog.
 However, it seems JavaScript is either disabled or not supported by your browser.
index ec290b6..e0880ab 100644 (file)
                </tbody>
        </table>
                <!--#include virtual='footer.xml'-->
+    <center>
+        <div id='gcfPrompt' class='hide_me'>
+            <script>dojo.require('dojo.cookie')</script>;
+            <div><span>&common.googlechromeframe.why;</span></div>
+            <button onclick='CFInstall.check({preventPrompt: false, mode: "popup"});'>&common.googlechromeframe.install;</button>
+            <button onclick='dojo.cookie("noGCF", "true", {path:"/"}); hideMe($("gcfPrompt"));'>&common.googlechromeframe.dontask;</button>
+        </div>
+    </center>
+    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
+    <script><![CDATA[ 
+        CFInstall.check({
+            preventPrompt: true,
+            onmissing: function() {
+                if (dojo.cookie("noGCF") != "true")
+                    unHideMe($('gcfPrompt'));
+            }
+        });]]>
+    </script>
+
 </body>
index 7990eb3..d6a279c 100644 (file)
@@ -1,4 +1,5 @@
 <head>
+    <meta http-equiv="X-UA-Compatible" content="chrome=1"></meta>
        <!-- Set the page title -->
 
        <!--#include virtual="common/css_common.xml"-->
index 7bc4784..4b72a57 100644 (file)
                }
        </script>
        <!--#include virtual='../footer.xml'-->
+    <center>
+        <div id='gcfPrompt' class='hide_me'>
+            <script>dojo.require('dojo.cookie')</script>;
+            <div><span>&common.googlechromeframe.why;</span></div>
+            <button onclick='CFInstall.check({preventPrompt: false, mode: "popup"});'>&common.googlechromeframe.install;</button>
+            <button onclick='dojo.cookie("noGCF", "true", {path:"/"}); hideMe($("gcfPrompt"));'>&common.googlechromeframe.dontask;</button>
+        </div>
+    </center>
+    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/chrome-frame/1/CFInstall.min.js"></script>
+    <script><![CDATA[ 
+        CFInstall.check({
+            preventPrompt: true,
+            onmissing: function() {
+                if (dojo.cookie("noGCF") != "true")
+                    unHideMe($('gcfPrompt'));
+            }
+        });]]>
+    </script>
 </body>