From 439b959961f93b8ad042b263b53a8fc5d5844e3a Mon Sep 17 00:00:00 2001 From: pines Date: Tue, 3 Oct 2006 22:17:11 +0000 Subject: [PATCH] fix "0" not displaying in treecell git-svn-id: svn://svn.open-ils.org/ILS/trunk@6376 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/chrome/content/util/list.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); } -- 2.43.2