From a2cfa32c48e98861adf89d2de2099c8d27552682 Mon Sep 17 00:00:00 2001 From: Fredrik Erlandsson Date: Tue, 20 Dec 2011 12:41:54 +0100 Subject: [PATCH] Fix for IE Support for using 'esc' to hide detailView --- icons/pear.css | 4 ++-- js/pear.js | 5 ++++- views/page.html.php | 5 ++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/icons/pear.css b/icons/pear.css index 0f167644..f64423c6 100644 --- a/icons/pear.css +++ b/icons/pear.css @@ -92,8 +92,8 @@ background: transparent url('pear_logo_sml.png') no-repeat center left; position: relative; color: #FFFFFF; height: 17px; - padding: 0px 0px 0px 30px; - width: 131px; + padding: 0px 0px 0px 25px; + width: 136px; float: right; z-index: 100; font-size: 12px; diff --git a/js/pear.js b/js/pear.js index b553b8bc..5b3d379a 100644 --- a/js/pear.js +++ b/js/pear.js @@ -430,6 +430,9 @@ document = null; swatchImg(currentImg - 1); // if($('imageflow')) handle(1); break; + case 27: /* Esc-key */ + hideDetailView(); + break; } }); } @@ -449,7 +452,7 @@ function bodyLoad(vm, bgcolor) { } /* end parse hash */ - if (navigator.appName === "Microsoft Internet Explorer") { + if (navigator.appVersion.search(/MSIE [0-7]/i) !== -1) { $('.track').each(function (s) {$(this).css('top', '-16px'); }); //Fix for IE's poor page rendering. } /* diff --git a/views/page.html.php b/views/page.html.php index dc6ab486..8d34fd7e 100644 --- a/views/page.html.php +++ b/views/page.html.php @@ -47,10 +47,9 @@ script("json2-min.js") ?> - script("jquery.js") ?> + script("jquery-1.6.2.min.js") ?> script("jquery.form.js") ?> - script("jquery-ui.js") ?> - script("jquery-ui-1.7.3.custom.min.js") ?> + script("jquery-ui-1.8.16.custom.min.js") ?> script("gallery.common.js") ?>