diff options
author | guy.pyrzak%gmail.com <> | 2008-05-20 23:39:04 +0200 |
---|---|---|
committer | guy.pyrzak%gmail.com <> | 2008-05-20 23:39:04 +0200 |
commit | 199feb47eee0d0bba43df3f012415ad24796a648 (patch) | |
tree | cf36d54a477a11ffa92e1a0eabced139eb307c04 /js | |
parent | fbb30d2c53cbbd71c80d58b30d2ec77f3c14d403 (diff) | |
download | bugzilla-199feb47eee0d0bba43df3f012415ad24796a648.tar.gz bugzilla-199feb47eee0d0bba43df3f012415ad24796a648.tar.xz |
Bug 433987 - show_bug.cgi javascript error on changing status
Patch By Guy Pyrzak <guy.pyrzak@gmail.com> r=mkanat a=mkanat
Diffstat (limited to 'js')
-rw-r--r-- | js/field.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/field.js b/js/field.js index 044c9b6ac..15b5d4f79 100644 --- a/js/field.js +++ b/js/field.js @@ -261,7 +261,7 @@ function showHideStatusItems(e, dupArrayInfo) { YAHOO.util.Dom.setStyle('resolution_settings', 'display', 'inline'); YAHOO.util.Dom.setStyle('resolution_settings_warning', 'display', 'block'); } - else if (close_status_array.indexOf(el.value) > -1) { + else if ( bz_isValueInArray(close_status_array, el.value) ) { // hide duplicate and show resolution YAHOO.util.Dom.setStyle('resolution_settings', 'display', 'inline'); YAHOO.util.Dom.setStyle('resolution_settings_warning', 'display', 'block'); @@ -273,7 +273,7 @@ function showDuplicateItem(e) { var resolution = document.getElementById('resolution'); var bug_status = document.getElementById('bug_status'); if (resolution) { - if (resolution.value == 'DUPLICATE' && close_status_array.indexOf(bug_status.value) > -1 ) { + if (resolution.value == 'DUPLICATE' && bz_isValueInArray( close_status_array, bug_status.value) ) { // hide resolution show duplicate YAHOO.util.Dom.setStyle('duplicate_settings', 'display', 'inline'); YAHOO.util.Dom.setStyle('dup_id_discoverable', 'display', 'none'); |