[open-ils-commits] r18914 - branches/rel_2_0/Open-ILS/web/js/dojo/openils (senator)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Dec 3 14:51:26 EST 2010
Author: senator
Date: 2010-12-03 14:51:22 -0500 (Fri, 03 Dec 2010)
New Revision: 18914
Modified:
branches/rel_2_0/Open-ILS/web/js/dojo/openils/BibTemplate.js
Log:
Backport part of r18912 from trunk
BibTemplate: make a couple of IE-friendly changes to BibTemplate.
Modified: branches/rel_2_0/Open-ILS/web/js/dojo/openils/BibTemplate.js
===================================================================
--- branches/rel_2_0/Open-ILS/web/js/dojo/openils/BibTemplate.js 2010-12-03 19:49:44 UTC (rev 18913)
+++ branches/rel_2_0/Open-ILS/web/js/dojo/openils/BibTemplate.js 2010-12-03 19:51:22 UTC (rev 18914)
@@ -151,7 +151,15 @@
});
if (debug) alert('BibTemplate debug -- template values:\n' + dojo.toJson( template_values ));
- if (template_value_count > 0) slot.innerHTML = dojo.string.substitute( unescape(slot.innerHTML), template_values );
+ if (template_value_count > 0) {
+ dojo.attr(
+ slot, "innerHTML",
+ dojo.string.substitute(
+ unescape(slot.innerHTML),
+ template_values
+ )
+ );
+ }
}
var handler_node = dojo.query( '*[type="opac/slot-format"]', slot )[0];
@@ -163,7 +171,7 @@
if (templated) {
if (handler_node) handler_node.parentNode.replaceChild( dojo.doc.createTextNode( content ), handler_node );
} else {
- slot.innerHTML = content;
+ dojo.attr(slot, "innerHTML", content);
}
}
More information about the open-ils-commits
mailing list