Changeset 3935 in subversion


Ignore:
Timestamp:
Sep 2, 2010 1:06:37 PM (3 years ago)
Author:
alec
Message:
  • Fix JS error in IE (can't move focus to the control...) (#1486972)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/js/editor.js

    r3934 r3935  
    6363 
    6464// react to real individual tinyMCE editor init 
    65 function rcmail_editor_callback(editor) 
     65function rcmail_editor_callback() 
    6666{ 
    67   var editor, elem = rcube_find_object('_from'); 
     67  var elem = rcube_find_object('_from'); 
    6868  if (elem && elem.type=='select-one') { 
    6969    rcmail.change_identity(elem); 
    7070    // Focus previously focused element 
    71     rcmail.env.compose_focus_elem.focus(); 
     71    if (rcmail.env.compose_focus_elem.id != rcmail.env.composebody) 
     72      rcmail.env.compose_focus_elem.focus(); 
    7273  } 
    7374  // set tabIndex and set focus to element that was focused before 
Note: See TracChangeset for help on using the changeset viewer.