[open-ils-commits] r850 - conifer/branches/rel_1_6_0/web/opac/skin/default/js (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Apr 1 13:40:04 EDT 2010


Author: dbs
Date: 2010-04-01 13:40:00 -0400 (Thu, 01 Apr 2010)
New Revision: 850

Modified:
   conifer/branches/rel_1_6_0/web/opac/skin/default/js/rdetail.js
Log:
Attack an obscure IE quirks mode rendering bug


Modified: conifer/branches/rel_1_6_0/web/opac/skin/default/js/rdetail.js
===================================================================
--- conifer/branches/rel_1_6_0/web/opac/skin/default/js/rdetail.js	2010-03-27 03:32:15 UTC (rev 849)
+++ conifer/branches/rel_1_6_0/web/opac/skin/default/js/rdetail.js	2010-04-01 17:40:00 UTC (rev 850)
@@ -390,7 +390,10 @@
 					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));
 			}



More information about the open-ils-commits mailing list