cc4c59437b211defe280b873d31752835ad095d9 wong Wed Sep 21 11:13:31 2011 -0700 added var to a variable to amke it local diff --git src/hg/js/ddcl.js src/hg/js/ddcl.js index a90b0fd..0970ac8 100644 --- src/hg/js/ddcl.js +++ src/hg/js/ddcl.js @@ -247,31 +247,31 @@ $(obj).dropdownchecklist({ firstItemChecksAll: true, noneIsAll: myNoneIsAll, maxDropHeight: myDropHeight, icon: myIcon, emptyText: myEmptyText, explicitClose: myClose, textFormatFunction: function () { return 'selecting...'; } , onComplete: mySelf.onComplete }); if (myNoneIsAll) $(obj).addClass('noneIsAll'); // Declare this as none selected same as all selected mySelf.onComplete(obj); // shows selected items in multiple lines // Set up the selector (control seen always and replacing select) - control = $('#ddcl-' + id); + var control = $('#ddcl-' + id); if (control == null || control == undefined) { warn('ddcl.setup('+id+') failed to create drop-down checkbox-list'); return; } var controlSelector = $(control).find(".ui-dropdownchecklist-selector"); $(controlSelector).click(mySelf.onOpen); $(controlSelector).css({width:maxWidth+'px'}); var controlText = $(control).find(".ui-dropdownchecklist-text"); $(controlText).css({width:maxWidth+'px'}); // Set up the drop list (control seen only on fucus and with items to choose) var dropWrapper = $('#ddcl-' + id + '-ddw'); if (dropWrapper == null || dropWrapper == undefined) { warn('ddcl.setup('+id+') failed to create drop-down checkbox-list'); return;