added helper line to convert string to node
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 29 Sep 2006 23:56:05 +0000 (23:56 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 29 Sep 2006 23:56:05 +0000 (23:56 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6275 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/common/js/utils.js

index 9c32d53..9df105f 100644 (file)
@@ -84,6 +84,7 @@ function removeChildren(dom) {
 }
 
 function appendClear(node, child) {
+       if(typeof child =='string') child = text(child);
        removeChildren(node);
        node.appendChild(child);
 }