[open-ils-commits] r13011 - trunk/Open-ILS/web/js/dojo/openils (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Apr 28 20:48:58 EDT 2009


Author: miker
Date: 2009-04-28 20:48:57 -0400 (Tue, 28 Apr 2009)
New Revision: 13011

Modified:
   trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js
Log:
replace, do not extend, the innerHTML of the slot

Modified: trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js	2009-04-29 00:35:40 UTC (rev 13010)
+++ trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js	2009-04-29 00:48:57 UTC (rev 13011)
@@ -62,7 +62,7 @@
                                 if (slot_handler) slot_handler = new Function('item', slot_handler);
                                 else slot_handler = new Function('item','return dojox.data.dom.textContent(item);');
                 
-                                slot.innerHTML += dojo.query(
+                                slot.innerHTML = dojo.query(
                                     slot.getAttribute('query'),
                                     bib
                                 ).map(slot_handler).join(' ');



More information about the open-ils-commits mailing list