mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
bug 296662: Javascript strict warnings in preferences dialogpatch by Henrik Skupin <hskupin@gmail.com>, r=bsmedberg, a=asa
This commit is contained in:
parent
fc1ed778ad
commit
0328e9de17
@ -501,17 +501,17 @@ function DeleteSelectedItemFromTree
|
|||||||
box.endUpdateBatch();
|
box.endUpdateBatch();
|
||||||
|
|
||||||
// update selection and/or buttons
|
// update selection and/or buttons
|
||||||
var removeButton = document.getElementById(removeButton);
|
var removeBtn = document.getElementById(removeButton);
|
||||||
var removeAllButton = document.getElementById(removeAllButton);
|
var removeAllBtn = document.getElementById(removeAllButton);
|
||||||
|
|
||||||
if (table.length) {
|
if (table.length) {
|
||||||
removeButton.removeAttribute("disabled");
|
removeBtn.removeAttribute("disabled");
|
||||||
removeAllButton.removeAttribute("disabled");
|
removeAllBtn.removeAttribute("disabled");
|
||||||
|
|
||||||
selection.select(oldSelectStart < table.length ? oldSelectStart : table.length - 1);
|
selection.select(oldSelectStart < table.length ? oldSelectStart : table.length - 1);
|
||||||
} else {
|
} else {
|
||||||
removeButton.setAttribute("disabled", "true");
|
removeBtn.setAttribute("disabled", "true");
|
||||||
removeAllButton.setAttribute("disabled", "true");
|
removeAllBtn.setAttribute("disabled", "true");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user