eliminate warnings in js console
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 30 Aug 2006 19:46:35 +0000 (19:46 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 30 Aug 2006 19:46:35 +0000 (19:46 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5787 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/util/widgets.js

index 82218d0..1a2001e 100644 (file)
@@ -116,7 +116,11 @@ util.widgets.make_menulist = function( items, dvalue ) {
                var menuitem = document.createElement('menuitem'); menupopup.appendChild(menuitem);
                menuitem.setAttribute('label',label);
                menuitem.setAttribute('value',value);
-               menuitem.setAttribute('style','font-family: monospace; padding-left: ' + indent + 'em;');
+               if (ident) {
+                       menuitem.setAttribute('style','font-family: monospace; padding-left: ' + indent + 'em;');
+               } else {
+                       menuitem.setAttribute('style','font-family: monospace;');
+               }
                if ( (disabled == true) || (disabled == "true") ) {
                        menuitem.disabled = true;
                        menuitem.setAttribute('disabled','true');