[open-ils-commits] r18913 - trunk/Open-ILS/web/js/dojo/openils (senator)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Dec 3 14:49:49 EST 2010
Author: senator
Date: 2010-12-03 14:49:44 -0500 (Fri, 03 Dec 2010)
New Revision: 18913
Modified:
trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js
Log:
BibTemplate: textContent()'s problem had already been fixed another way in
rel_2_0, so let's stick with that.
Modified: trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js 2010-12-03 19:40:47 UTC (rev 18912)
+++ trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js 2010-12-03 19:49:44 UTC (rev 18913)
@@ -59,11 +59,12 @@
},
textContent : function (node) {
+ var content = '';
if (node) {
- return node.innerText || node.textContent ||
- dojox.xml.parser.textContent(node) || "";
+ if(window.ActiveXObject) content = node.text;
+ else content = node.textContent;
}
- return '';
+ return content;
},
render : function() {
More information about the open-ils-commits
mailing list