similar to findbib, replace dojox.data.dom.textContent (which fails for unknown reaso...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 10 Aug 2010 14:45:21 +0000 (14:45 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 10 Aug 2010 14:45:21 +0000 (14:45 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17149 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/templates/default/acq/lineitem/related.tt2

index be798eb..fda97e9 100644 (file)
@@ -7,10 +7,8 @@
     <script type="text/javascript">
         function iterateSubfields(item) {
             var out = '';
-            var list = dojo.query('subfield', item);
-            for (var i = 0; i < list.length; i++) {
-                out += dojox.data.dom.textContent(list[i]) + ' ';
-            }
+            dojo.query('subfield', item).forEach(
+                function(item) { out += item.textContent + ' '; } );
             return out;
         }
     </script>