bug 296662: Javascript strict warnings in preferences dialog

patch by Henrik Skupin <hskupin@gmail.com>, r=bsmedberg, a=asa
This commit is contained in:
db48x%yahoo.com 2007-05-15 05:55:40 +00:00
Родитель 93b64ffdcd
Коммит 2ffcc50d73
1 изменённых файлов: 6 добавлений и 6 удалений

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

@ -501,17 +501,17 @@ function DeleteSelectedItemFromTree
box.endUpdateBatch();
// update selection and/or buttons
var removeButton = document.getElementById(removeButton);
var removeAllButton = document.getElementById(removeAllButton);
var removeBtn = document.getElementById(removeButton);
var removeAllBtn = document.getElementById(removeAllButton);
if (table.length) {
removeButton.removeAttribute("disabled");
removeAllButton.removeAttribute("disabled");
removeBtn.removeAttribute("disabled");
removeAllBtn.removeAttribute("disabled");
selection.select(oldSelectStart < table.length ? oldSelectStart : table.length - 1);
} else {
removeButton.setAttribute("disabled", "true");
removeAllButton.setAttribute("disabled", "true");
removeBtn.setAttribute("disabled", "true");
removeAllBtn.setAttribute("disabled", "true");
}
}