From: senator Date: Fri, 3 Dec 2010 19:51:22 +0000 (+0000) Subject: Backport part of r18912 from trunk X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5cf21cbcae4ca07a213ee93549dbb4a4b6de3f62;p=working%2FEvergreen.git Backport part of r18912 from trunk BibTemplate: make a couple of IE-friendly changes to BibTemplate. git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_2_0@18914 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/dojo/openils/BibTemplate.js b/Open-ILS/web/js/dojo/openils/BibTemplate.js index d2aa8f2c17..0391866ceb 100644 --- a/Open-ILS/web/js/dojo/openils/BibTemplate.js +++ b/Open-ILS/web/js/dojo/openils/BibTemplate.js @@ -151,7 +151,15 @@ if(!dojo._hasResource["openils.BibTemplate"]) { }); 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(!dojo._hasResource["openils.BibTemplate"]) { if (templated) { if (handler_node) handler_node.parentNode.replaceChild( dojo.doc.createTextNode( content ), handler_node ); } else { - slot.innerHTML = content; + dojo.attr(slot, "innerHTML", content); } }