Attack an obscure IE quirks mode rendering bug
authordbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Thu, 1 Apr 2010 17:40:00 +0000 (17:40 +0000)
committerdbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Thu, 1 Apr 2010 17:40:00 +0000 (17:40 +0000)
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

index 644d3ae..c5fb590 100644 (file)
@@ -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('<a class="search_link" href="' + href + '">' + displayLabel + '</a>', dojo.byId('rdetail_online'));
                        if (note && note != displayLabel) {
                                $('rdetail_online').appendChild(elem('span', {'class':'url_note'}, ' - ' + note));
                        }