Bug 545277: Closed bugs were always marked as FIXED in the resolution
<select> when show_bug.cgi was loaded r=LpSolit, a=mkanat git-svn-id: svn://10.0.0.236/trunk@259670 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
e936808e85
commit
30e63feafd
@ -1 +1 @@
|
||||
6978
|
||||
6979
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user