Changeset 5602
- Timestamp:
- 03/01/12 16:07:36 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/abas.js
r5546 r5602 397 397 var cancel = new LertButton(get_lang('cancel'), function() { 398 398 Element("border_id_"+ID).onclick = function () { alternate_border(ID);}; 399 $("#to_"+ID).focus(); 399 var setFocus = function(ID){ 400 if ($.trim($("#to_"+ID).val()) == "") 401 $("#to_"+ID).focus(); 402 else if ($("#tr_cc_"+ID).css('display') != 'none' && $.trim($("#cc_"+ID).val()) == "") 403 $("#cc_"+ID).focus(); 404 else if ($("#tr_cco_"+ID).css('display') != 'none' && $.trim($("#cco_"+ID).val()) == "") 405 $("#cco_"+ID).focus(); 406 else if ($.trim($("#subject_"+ID).val()) == "") 407 $("#subject_"+ID).focus(); 408 else{ 409 if (RichTextEditor.plain[id] != true) 410 setTimeout("RichTextEditor.focus("+ID+")",100); 411 else 412 $('#body_'+ID).focus(); 413 } 414 } 415 setFocus(ID); 400 416 opened_alert = false; 401 417 });
Note: See TracChangeset
for help on using the changeset viewer.