Commit aebbdc07 authored by Guy Pyrzak's avatar Guy Pyrzak Committed by Frédéric Buclin

Bug 546719: When reopening a Resolved Duplicated bug in IE, JS error stops the…

Bug 546719: When reopening a Resolved Duplicated bug in IE, JS error stops the correct page behavior r/a=mkanat
parent 9e044b55
......@@ -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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment