rem: if (!gQueryURIFormat) { gQueryURIFormat = gPrefs.getCharPref("mail.addr_book.quicksearchquery.format"); } 
add: var searchURI = GetSelectedDirectory(); if (!searchURI) return; 
context: function onEnterInSearchBar(){  ClearCardViewPane();  var selectedItems = dirTree.selectedItems;  if (selectedItems.length != 1)    return;  if (!gQueryURIFormat) {    gQueryURIFormat = gPrefs.getCharPref("mail.addr_book.quicksearchquery.format");  }  var selectedNode = selectedItems[0];  var sortColumn = selectedNode.getAttribute("sortColumn");  var sortDirection = selectedNode.getAttribute("sortDirection");  var searchURI = selectedNode.getAttribute("id");  /*   XXX todo, handle the case where the LDAP url   already has a query, like    moz-abldapdirectory://nsdirectory.netscape.com:389/ou=People,dc=netscape,dc=com?(or(Department,=,Applications))  */  if (gSearchInput.value != "") {    // replace all instances of @V with the escaped version    // of what the user typed in the quick search text input    searchURI += gQueryURIFormat.replace(/@V/g, escape(gSearchInput.value));  }  SetAbView(searchURI, sortColumn, sortDirection);    // XXX todo   // this works for synchronous searches of local addressbooks,   // but not for LDAP searches  SelectFirstCard();}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/addressbook.js/clean/mailnews/addrbook/resources/content/addressbook.js