substitute blanks for undefined
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 30 Sep 2006 10:53:50 +0000 (10:53 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 30 Sep 2006 10:53:50 +0000 (10:53 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6294 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/util/list.js

index b34c13b..476ca74 100644 (file)
@@ -669,7 +669,7 @@ util.list.prototype = {
                                        label = this.map_row_to_column(params.row,this.columns[i]);
        
                                }
-                               treecell.setAttribute('label',label);
+                               treecell.setAttribute('label',label ? label : '');
                                treerow.appendChild( treecell );
                                s += ('treecell = ' + treecell + ' with label = ' + label + '\n');
                        }
@@ -688,7 +688,7 @@ util.list.prototype = {
                        }
                        for (var i = 0; i < labels.length; i++) {
                                var treecell = document.createElement('treecell');
-                               treecell.setAttribute('label',labels[i]);
+                               treecell.setAttribute('label',labels[i] ? labels[i] : '');
                                treerow.appendChild( treecell );
                                s += ('treecell = ' + treecell + ' with label = ' + labels[i] + '\n');
                        }