Changeset 2487

Show
Ignore:
Timestamp:
06/02/08 19:29:14 (21 months ago)
Author:
bchoate
Message:

Issue focus in try block to avoid error if text field is hidden. BugId:79979

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-39/default_templates/javascript.mtml

    r2486 r2487  
    604604    checkbox.value = parent_id;  
    605605    checkbox.checked = true; 
    606     text.focus(); 
     606    try { 
     607        // text field may be hidden 
     608        text.focus(); 
     609    } catch(e) { 
     610    } 
    607611 
    608612    mtSetCommentParentID();