rem: var selectedPriority = selectedPriority[0]; 
add: selectedPriority = selectedPriority[0]; 
context: function initializeDialog(filter){    gFilterNameElement.value = filter.filterName;    gActionElement.selectedItem=gActionElement.getElementsByAttribute("data", filter.action)[0];    showActionElementFor(gActionElement.selectedItem);    if (filter.action == nsMsgFilterAction.MoveToFolder) {        dump("pre-selecting target folder: " + filter.actionTargetFolderUri + "\n");        // there are multiple sub-items that have given attribute        var targets = gActionTargetElement.getElementsByAttribute("data", filter.actionTargetFolderUri);        if (targets && targets.length > 0) {            var target = targets[0];            if (target.localName == "menuitem")                gActionTargetElement.selectedItem = target;        }    } else if (filter.action == nsMsgFilterAction.ChangePriority) {        dump("initializing priority..\n");        var selectedPriority = gActionPriority.getElementsByAttribute("data", filter.actionPriority);        if (selectedPriority && selectedPriority.length > 0) {            var selectedPriority = selectedPriority[0];            gActionPriority.selectedItem = selectedPriority;        }    }            var scope = getScope(filter);    setSearchScope(scope);    initializeSearchRows(scope, filter.searchTerms);	if (filter.searchTerms.Count() > 1)		gSearchLessButton.removeAttribute("disabled", "false");}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1a02638823f746d07d778b23a3bb52125beac2ee/FilterEditor.js/clean/mailnews/base/search/resources/content/FilterEditor.js