// add an <option> to the <select>
// used only by buildSelect()
- if(disabled == undefined) var disabled = false;
+ if(disabled == undefined) disabled = false;
var $O = $('#' + optionId);
var $option = $("<option>" + $O.text() + "</option>")
parentName = parentName.split(' ')[0];
parentId = $('.option-'+parentName).attr('rel');
addListItem(parentId);
- };
- };
+ }
+ }
}
function addListItemShow($item) {
// remove an item from the html list
- if(highlightItem == undefined) var highlightItem = true;
+ if(highlightItem == undefined) highlightItem = true;
var $O = $('#' + optionId);
$O.prop('selected', false);