diff --git a/app/views/layouts/application.rhtml b/app/views/layouts/application.rhtml index 419c51a..920aa10 100644 --- a/app/views/layouts/application.rhtml +++ b/app/views/layouts/application.rhtml @@ -44,8 +44,9 @@ /* Adds a class to "msie" to the body element if a Microsoft browser is * detected. This is needed to workaround several of their limitations. */ - if ( navigator.appName.indexOf("Microsoft") > -1 ) { - document.body.className += " msie"; + if ( navigator.appVersion.indexOf("MSIE") > -1 ) { + document.body.className += " msie msie" + + navigator.appVersion.replace(/^.*MSIE\s+([0-9]+).*$/, "$1"); } @@ -120,5 +121,17 @@ <%= localist_menu %> <%= footer %> + +
+ <%= javascript_include_tag 'better-browser-promotion' %> +