[open-ils-commits] r15604 - in trunk/Open-ILS/web: js/dojo/openils opac/skin/default/xml/result (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Feb 20 15:54:46 EST 2010
Author: miker
Date: 2010-02-20 15:54:41 -0500 (Sat, 20 Feb 2010)
New Revision: 15604
Modified:
trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js
trunk/Open-ILS/web/opac/skin/default/xml/result/result_table.xml
Log:
IE support hacks courtesy of Dan Wells
Modified: trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js 2010-02-19 23:58:31 UTC (rev 15603)
+++ trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js 2010-02-20 20:54:41 UTC (rev 15604)
@@ -56,7 +56,7 @@
var joiner = slot.getAttribute('join') || ' ';
var slot_handler = dojo.map(
- dojo.query( 'script[type=opac/slot-format]', slot ).orphan(),
+ dojo.query( '*[type=opac/slot-format]', slot ).orphan(), // IE, I really REALLY hate you
function(x){ return dojox.data.dom.textContent(x) || x.innerHTML }
).join('');
Modified: trunk/Open-ILS/web/opac/skin/default/xml/result/result_table.xml
===================================================================
--- trunk/Open-ILS/web/opac/skin/default/xml/result/result_table.xml 2010-02-19 23:58:31 UTC (rev 15603)
+++ trunk/Open-ILS/web/opac/skin/default/xml/result/result_table.xml 2010-02-20 20:54:41 UTC (rev 15604)
@@ -140,7 +140,10 @@
<tr name="local_callnumber_list" class="result_table_title_cell hide_me">
<td>&result.localCallNumbers;
<span type='opac/slot-data+holdings_xml' query='volumes volume' join=", ">
- <script type='opac/slot-format'><![CDATA[return '<b>'+item.getAttribute('label')+'</b>';]]></script>
+ <!-- Because we clone this template table, and IE won't clone <script>
+ nodes (yes, even when it doesn't understand the type ARG) we need
+ to use something other than a <script> HATE HATE HATE -->
+ <span class="hide_me" type='opac/slot-format'><![CDATA[return '<b>'+item.getAttribute('label')+'</b>';]]></span>
</span>
</td>
</tr>
More information about the open-ils-commits
mailing list