rem: if (resultsTree.selectedItems && resultsTree.selectedItems.length == 1) { var uri = resultsTree.selectedItems[0].getAttribute("id"); var card = rdf.GetResource(uri); card = card.QueryInterface(Components.interfaces.nsIAbCard); if (card.isMailList) { var listUri = card.mailListURI; goEditListDialog(resultsTree.getAttribute("ref"), listUri); } else { var updateFunc = ("gUpdateCardView" in top) ? top.gUpdateCardView : null; goEditCardDialog(resultsTree.getAttribute("ref"), card, updateFunc, uri); } 
add: if (card.isMailList) { goEditListDialog(gAbView.URI, card, card.mailListURI, UpdateCardView); } else { goEditCardDialog(gAbView.URI, card, UpdateCardView); 
context: function AbEditCard(){  var rdf = Components.classes["@mozilla.org/rdf/rdf-service;1"].getService();  rdf = rdf.QueryInterface(Components.interfaces.nsIRDFService);  if (resultsTree.selectedItems && resultsTree.selectedItems.length == 1) {    var uri = resultsTree.selectedItems[0].getAttribute("id");    var card = rdf.GetResource(uri);    card = card.QueryInterface(Components.interfaces.nsIAbCard);    if (card.isMailList) {      var listUri = card.mailListURI;      goEditListDialog(resultsTree.getAttribute("ref"), listUri);    }    else {      var updateFunc = ("gUpdateCardView" in top) ? top.gUpdateCardView : null;      goEditCardDialog(resultsTree.getAttribute("ref"), card, updateFunc, uri);    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/404e12e0541a3ffd54ae714e9a3401c380718f10/abCommon.js/clean/mailnews/addrbook/resources/content/abCommon.js