From: pines Date: Tue, 3 Oct 2006 22:17:11 +0000 (+0000) Subject: fix "0" not displaying in treecell X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=439b959961f93b8ad042b263b53a8fc5d5844e3a;p=evergreen%2Fpines.git fix "0" not displaying in treecell git-svn-id: svn://svn.open-ils.org/ILS/trunk@6376 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 476ca74dae..fc2650c26a 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/list.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/list.js @@ -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] ? labels[i] : ''); + treecell.setAttribute('label',typeof labels[i] == 'string' || typeof labels[i] == 'number' ? labels[i] : ''); treerow.appendChild( treecell ); s += ('treecell = ' + treecell + ' with label = ' + labels[i] + '\n'); }