[open-ils-commits] r19489 - branches/rel_2_0/Open-ILS/web/opac/skin/default/xml/result (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Feb 18 13:46:26 EST 2011


Author: dbs
Date: 2011-02-18 13:46:22 -0500 (Fri, 18 Feb 2011)
New Revision: 19489

Modified:
   branches/rel_2_0/Open-ILS/web/opac/skin/default/xml/result/result_table.xml
Log:
Switch to BT.textContent() for Opera compatibility

The BT.textContent() method abstracts away some of the browser
differences for us. Most importantly, it makes Opera happy.


Modified: branches/rel_2_0/Open-ILS/web/opac/skin/default/xml/result/result_table.xml
===================================================================
--- branches/rel_2_0/Open-ILS/web/opac/skin/default/xml/result/result_table.xml	2011-02-18 18:45:35 UTC (rev 19488)
+++ branches/rel_2_0/Open-ILS/web/opac/skin/default/xml/result/result_table.xml	2011-02-18 18:46:22 UTC (rev 19489)
@@ -172,7 +172,7 @@
 														vol_appended = true;
 													}
 													var loc = dojo.create('span', { "style": "font-weight: bold;"}, cp_entry);
-													var loc_txt = dojo.doc.createTextNode(' - ' + dojox.xml.parser.textContent(location));
+													var loc_txt = dojo.doc.createTextNode(' - ' + BT.textContent(location));
 													loc.appendChild(loc_txt);
 												}
 											});
@@ -186,7 +186,7 @@
 											});
 											dojo.query('status', cp).forEach(function (status) {
 												var cp_status = dojo.create('span', { "style": "font-weight: bold;" }, cp_entry);
-												var cp_status_txt = dojo.doc.createTextNode(' (' + dojox.xml.parser.textContent(status) + ')');
+												var cp_status_txt = dojo.doc.createTextNode(' (' + BT.textContent(status) + ')');
 												cp_status.appendChild(cp_status_txt);
 											});
 



More information about the open-ils-commits mailing list