aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorGuy Pyrzak <guy.pyrzak@gmail.com>2010-02-18 19:55:37 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2010-02-18 19:55:37 +0100
commit168c552115d6a9c455a5abafefea6edb75dcbfd2 (patch)
tree2f5e7caa19d834ecf6d9dcca9d5a2587a7b207e9 /js
parentBug 533018: "Confirm match" displays full email address to logged-out users i... (diff)
downloadbugzilla-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.js7
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');