From: pines Date: Sat, 30 Sep 2006 10:53:50 +0000 (+0000) Subject: substitute blanks for undefined X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6a9d1a6b7b12cb0db18dbe8ae81467cd7b0351b4;p=Evergreen.git substitute blanks for undefined git-svn-id: svn://svn.open-ils.org/ILS/trunk@6294 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/util/list.js b/Open-ILS/xul/staff_client/chrome/content/util/list.js index b34c13bfb0..476ca74dae 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/list.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/list.js @@ -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'); }