From 371c1d740075b452ded6944896418b4cfdcce6c3 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Fri, 4 Mar 2011 01:13:34 -0500 Subject: [PATCH] prevent 'undefined' from showing up in empty editable dropdown menus --- Open-ILS/xul/staff_client/chrome/content/util/widgets.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/util/widgets.js b/Open-ILS/xul/staff_client/chrome/content/util/widgets.js index 358519a09a..3e0dbc98a1 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/widgets.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/widgets.js @@ -134,7 +134,9 @@ util.widgets.make_menulist = function( items, dvalue ) { menuitem.setAttribute('disabled','true'); } } - menulist.setAttribute('value',dvalue); + if (typeof dvalue != 'undefined') { + menulist.setAttribute('value',dvalue); + } return menulist; } -- 2.11.0