From: dbs Date: Thu, 1 Apr 2010 17:40:00 +0000 (+0000) Subject: Attack an obscure IE quirks mode rendering bug X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=205dba4a6d00c88ed37a13e9e5572be520c014df;p=contrib%2FConifer.git 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 --- 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)); }