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

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Sep 22 13:37:13 EDT 2009


Author: miker
Date: 2009-09-22 13:37:09 -0400 (Tue, 22 Sep 2009)
New Revision: 14089

Modified:
   trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js
Log:
make the IE fix for pulling out formatting code less IE specific in case we run into some other browser for which dojox.data.dom.textContent() does not work properly

Modified: trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js	2009-09-22 17:20:05 UTC (rev 14088)
+++ trunk/Open-ILS/web/js/dojo/openils/BibTemplate.js	2009-09-22 17:37:09 UTC (rev 14089)
@@ -54,15 +54,10 @@
                                 var joiner = slot.getAttribute('join') || ' ';
 
                                 var slot_handler = dojo.map(
-                                    dojo.query('script[type=opac/slot-format]', slot).orphan(),
-                                    function(x){
-                                        if(dojo.isIE) return x.innerHTML;
-                                        return dojox.data.dom.textContent(x)
-                                    }
-                                );
+                                    dojo.query( 'script[type=opac/slot-format]', slot ).orphan(),
+                                    function(x){ return dojox.data.dom.textContent(x) || x.innerHTML }
+                                ).join('');
 
-                                slot_handler = slot_handler.join('');
-
                                 if (slot_handler) slot_handler = new Function('item', slot_handler);
                                 else slot_handler = new Function('item','return dojox.data.dom.textContent(item);');
                 



More information about the open-ils-commits mailing list