rem: if (action == nsMsgFilterAction.MoveToFolder && gActionElement.selectedItem) gFilter.actionTargetFolderUri = gActionTargetElement.selectedItem.getAttribute("data"); else if (action == nsMsgFilterAction.ChangePriority) gFilter.actionPriority = 0;  
add: if (action == nsMsgFilterAction.MoveToFolder) { var targetUri; if (gActionTargetElement) targetUri = gActionTargetElement.selectedItem.getAttribute("data"); dump("folder target = " + gActionTargetElement.selectedItem + "\n"); if (!targetUri || targetUri == "") { var str = Bundle.GetStringFromName("mustSelectFolder"); window.alert(str); return false; } gFilter.actionTargetFolderUri = targetUri; }  else if (action == nsMsgFilterAction.ChangePriority) { if (!gActionPriority.selectedItem) { var str = Bundle.GetStringFromName("mustSelectPriority"); window.alert(str); return false; } gFilter.actionPriority = gActionPriority.selectedItem.getAttribute("data"); }  
context: function saveFilter() {    var isNewFilter;    if (!gFilter) {        gFilter = gFilterList.createFilter(gFilterNameElement.value);        isNewFilter = true;    } else {        gFilter.filterName = gFilterNameElement.value;        isNewFilter = false;    }    saveSearchTerms(gFilter.searchTerms, gFilter);    var action = gActionElement.selectedItem.getAttribute("data");    gFilter.action = action;    if (action == nsMsgFilterAction.MoveToFolder &&        gActionElement.selectedItem)        gFilter.actionTargetFolderUri =            gActionTargetElement.selectedItem.getAttribute("data");    else if (action == nsMsgFilterAction.ChangePriority)        gFilter.actionPriority = 0; // whatever, fix this    if (isNewFilter)        gFilterList.insertFilterAt(0, gFilter);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f18e2f823073f78ee33041bea9ec015a431e422c/FilterEditor.js/clean/mailnews/base/search/resources/content/FilterEditor.js