diff options
author | Guy Pyrzak <guy.pyrzak@gmail.com> | 2010-02-18 19:55:37 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2010-02-18 19:55:37 +0100 |
commit | 168c552115d6a9c455a5abafefea6edb75dcbfd2 (patch) | |
tree | 2f5e7caa19d834ecf6d9dcca9d5a2587a7b207e9 /js | |
parent | Bug 533018: "Confirm match" displays full email address to logged-out users i... (diff) | |
download | bugzilla-168c552115d6a9c455a5abafefea6edb75dcbfd2.tar.gz bugzilla-168c552115d6a9c455a5abafefea6edb75dcbfd2.tar.bz2 bugzilla-168c552115d6a9c455a5abafefea6edb75dcbfd2.zip |
Bug 546719: When reopening a Resolved Duplicated bug in IE, JS error stops the correct page behavior
r/a=mkanat
Diffstat (limited to 'js')
-rw-r--r-- | js/field.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/js/field.js b/js/field.js index 011d4da52..0f1779b32 100644 --- a/js/field.js +++ b/js/field.js @@ -316,8 +316,11 @@ function showDuplicateItem(e) { YAHOO.util.Dom.removeClass('duplicate_settings', 'bz_default_hidden'); YAHOO.util.Dom.addClass('dup_id_discoverable', 'bz_default_hidden'); - dup_id.focus(); - dup_id.select(); + // check to make sure the field is visible or IE throws errors + if( ! YAHOO.util.Dom.hasClass( dup_id, 'bz_default_hidden' ) ){ + dup_id.focus(); + dup_id.select(); + } } else { YAHOO.util.Dom.addClass('duplicate_settings', 'bz_default_hidden'); |