From 205dba4a6d00c88ed37a13e9e5572be520c014df Mon Sep 17 00:00:00 2001 From: dbs Date: Thu, 1 Apr 2010 17:40:00 +0000 Subject: [PATCH] Attack an obscure IE quirks mode rendering bug git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/branches/rel_1_6_0@850 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- web/opac/skin/default/js/rdetail.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/opac/skin/default/js/rdetail.js b/web/opac/skin/default/js/rdetail.js index 644d3aef8c..c5fb59077b 100644 --- a/web/opac/skin/default/js/rdetail.js +++ b/web/opac/skin/default/js/rdetail.js @@ -390,7 +390,10 @@ function _rdetailDraw(r) { displayLabel = note; } } - $('rdetail_online').appendChild(elem('a', {href:href,'class':'classic_link'}, displayLabel)); + // IE in quirks mode doesn't render CSS styling for links where the class attribute + // comes after the href attribute, apparently; we can use Dojo to ensure the class + // attribute comes first + dojo.place('' + displayLabel + '', dojo.byId('rdetail_online')); if (note && note != displayLabel) { $('rdetail_online').appendChild(elem('span', {'class':'url_note'}, ' - ' + note)); } -- 2.11.0