rem: (promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_1) + (promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_2), 
add: (promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_1) + (promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_2), 
context: function ConfirmDelete(){  deleteButton = document.getElementById("delbutton");  if( deleteButton.getAttribute("disabled") == "true" )    return;  var profileTree = document.getElementById( "profiles" );  var selected = profileTree.selectedItems[0];  var name = selected.getAttribute("rowName");    var dialogTitle = gProfileManagerBundle.getString("deletetitle");  var dialogText;    if( selected.firstChild.firstChild.getAttribute("rowMigrate") == "no" ) {    var brandName = gBrandBundle.getString("brandShortName");    dialogText = gProfileManagerBundle.getFormattedString("delete4xprofile", [brandName]);    dialogText = dialogText.replace(/\s*<html:br\/>/g,"\n");        if (promptService.confirm(window, dialogTitle, dialogText)) {      profile.deleteProfile( name, false );      var profileKids = document.getElementById( "profilekids" )      profileKids.removeChild( selected );    }    return;  }  else {    var pathExists = true;    try {      var path = profile.getProfilePath(name);    }    catch (ex) {      pathExists = false;    }    if (pathExists) {      dialogText = gProfileManagerBundle.getFormattedString("deleteprofile", [path]);      dialogText = dialogText.replace(/\s*<html:br\/>/g,"\n");      var buttonPressed = {value:0}      promptService.confirmEx(window, dialogTitle, dialogText,                              (promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_0) +                              (promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_1) +                              (promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_2),                              gProfileManagerBundle.getString("dontDeleteFiles"),                              gProfileManagerBundle.getString("deleteFiles"),                              null, null, {value:0}, buttonPressed);      if (buttonPressed.value != 2)          DeleteProfile(buttonPressed.value == 1);    }    else      DeleteProfile(false);  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/b701f2747db83cb862a53330a4aa33417d630281/profileManager.js/buggy/profile/resources/content/profileManager.js