Commit c6c99bcc authored by Max Kanat-Alexander's avatar Max Kanat-Alexander

Bug 545277: Closed bugs were always marked as FIXED in the resolution

<select> when show_bug.cgi was loaded r=LpSolit, a=mkanat
parent 75c45bfe
......@@ -272,6 +272,7 @@ function showHideStatusItems(e, dupArrayInfo) {
// by "resolution" behave properly when resolution is hidden.
var resolution = document.getElementById('resolution');
if (resolution && resolution.options[0].value != '') {
resolution.bz_lastSelected = resolution.selectedIndex;
var emptyOption = new Option('', '');
resolution.insertBefore(emptyOption, resolution.options[0]);
emptyOption.selected = true;
......@@ -295,7 +296,7 @@ function showHideStatusItems(e, dupArrayInfo) {
// Remove the blank option we inserted.
if (resolution && resolution.options[0].value == '') {
resolution.removeChild(resolution.options[0]);
resolution.options[0].selected = true;
resolution.selectedIndex = resolution.bz_lastSelected;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment