diff options
-rw-r--r-- | js/field.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/field.js b/js/field.js index 1300e1c53..011d4da52 100644 --- a/js/field.js +++ b/js/field.js @@ -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; } } |