From: Jason Etheridge Date: Fri, 4 Mar 2011 06:13:34 +0000 (-0500) Subject: prevent 'undefined' from showing up in empty editable dropdown menus X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=371c1d740075b452ded6944896418b4cfdcce6c3;p=evergreen%2Fequinox.git prevent 'undefined' from showing up in empty editable dropdown menus --- 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; }