stringify before split
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 11 Sep 2006 05:43:38 +0000 (05:43 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 11 Sep 2006 05:43:38 +0000 (05:43 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6057 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/spine_labels.xul

index cda7738..e19296e 100644 (file)
@@ -96,7 +96,7 @@
                                        var ds = document.createElement('description'); hb.appendChild(ds);
                                        ds.appendChild( document.createTextNode( g.volumes[i].label() ) );
                                        var gb = document.createElement('groupbox'); hb.appendChild(gb); 
-                                       var names = g.volumes[i].label().split(/\s+/).reverse();
+                                       var names = String(g.volumes[i].label()).split(/\s+/).reverse();
                                        for (var j = 0; j < ll; j++) {
                                                var hb2 = document.createElement('hbox'); gb.appendChild(hb2);
                                                var tb = document.createElement('textbox'); hb2.appendChild(tb);