bug 342341 - whitespace fixes before the actual fix

This commit is contained in:
mattwillis%gmail.com 2006-06-22 12:21:38 +00:00
Родитель 0edf6f8332
Коммит 2ef7bac0ed
1 изменённых файлов: 11 добавлений и 11 удалений

Просмотреть файл

@ -187,14 +187,13 @@ var gCategoriesPane = {
}
}
// If 'Overwrite' was chosen, delete category that was being edited
if (toBeDeleted != -1) {
list.selectedIndex = toBeDeleted;
this.deleteCategory();
}
this.updateCategoryList();
// If 'Overwrite' was chosen, delete category that was being edited
if (toBeDeleted != -1) {
list.selectedIndex = toBeDeleted;
this.deleteCategory();
}
this.updateCategoryList();
},
fixName: function (categoryName) {
@ -204,8 +203,8 @@ var gCategoriesPane = {
},
enableButtons: function () {
document.getElementById("editCButton").disabled=null;
document.getElementById("deleteCButton").disabled=null;
document.getElementById("editCButton").disabled = null;
document.getElementById("deleteCButton").disabled = null;
},
backupData: function (categoryNameFix) {
@ -213,12 +212,13 @@ var gCategoriesPane = {
try {
currentColor = categoryPrefBranch.getCharPref(categoryNameFix);
} catch (ex) {
currentColor="##NEW";
currentColor = "##NEW";
}
for (var i=0; i < parent.backupPrefList.length; i++) {
if (categoryNameFix == parent.backupPrefList[i].name)
if (categoryNameFix == parent.backupPrefList[i].name) {
return;
}
}
parent.backupPrefList[parent.backupPrefList.length] =
{ name : categoryNameFix, color : currentColor };