rem: doSetOKCancel(onOk, onCancel); 
context: function filterEditorOnLoad(){    initializeSearchWidgets();    initializeFilterWidgets();    gFilterBundle = document.getElementById("bundle_filter");    if ("arguments" in window && window.arguments[0]) {        var args = window.arguments[0];        if("okCallback" in args ) {          top.okCallback = window.arguments[0].okCallback;        }        if ("filter" in args) {          // editing a filter          gFilter = window.arguments[0].filter;          initializeDialog(gFilter);        }         else {          gFilterList = args.filterList;          if (gFilterList)              setSearchScope(getScopeFromFilterList(gFilterList));          // if doing prefill filter create a new filter and populate it.          if ("filterName" in args) {            gPreFillName = args.filterName;            gFilter = gFilterList.createFilter(gPreFillName);            var term = gFilter.createTerm();            term.attrib = Components.interfaces.nsMsgSearchAttrib.Sender;            term.op = Components.interfaces.nsMsgSearchOp.Is;            var termValue = term.value;            termValue.attrib = term.attrib;            termValue.str = gPreFillName;            term.value = termValue;            gFilter.appendTerm(term);            gFilter.action = nsMsgFilterAction.MoveToFolder;            initializeDialog(gFilter);          }          else{            // fake the first more button press            onMore(null);          }        }    }    if (!gFilter)    {      var stub = gFilterBundle.getString("untitledFilterName");      var count = 1;      var name = stub;      // Set the default filter name to be "untitled filter"      while (duplicateFilterNameExists(name))       {        count++;        name = stub + " " + count.toString();      }      gFilterNameElement.value = name;    }    gFilterNameElement.focus();    doSetOKCancel(onOk, onCancel);    moveToAlertPosition();}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/71e1ffab7041d706ecdcfdbf01b42232fdf44f36/FilterEditor.js/clean/mailnews/base/search/resources/content/FilterEditor.js