Changeset d1d9fd8 in github


Ignore:
Timestamp:
Apr 8, 2011 3:44:19 AM (2 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
ff10f5e
Parents:
d483cd7
Message:
  • Prevent javascript error if TinyMCE is not initialized (#1487862)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/js/app.js

    rec045b0 rd1d9fd8  
    30223022  { 
    30233023    // check input fields 
    3024     var value_to = $("[name='_to']").val(); 
    3025     var value_cc = $("[name='_cc']").val(); 
    3026     var value_bcc = $("[name='_bcc']").val(); 
    3027     var value_subject = $("[name='_subject']").val(); 
    3028     var str = ''; 
     3024    var ed, str = '', 
     3025      value_to = $("[name='_to']").val(), 
     3026      value_cc = $("[name='_cc']").val(), 
     3027      value_bcc = $("[name='_bcc']").val(), 
     3028      value_subject = $("[name='_subject']").val(); 
    30293029 
    30303030    if (value_to) 
     
    30373037      str += value_subject+':'; 
    30383038 
    3039     var editor = tinyMCE.get(this.env.composebody); 
    3040     if (editor) 
    3041       str += editor.getContent(); 
     3039    if (window.tinyMCE && (ed = tinyMCE.get(this.env.composebody))) 
     3040      str += ed.getContent(); 
    30423041    else 
    30433042      str += $("[name='_message']").val(); 
     
    39853984      this.env.contactfolders[newkey].id = prop.newid; 
    39863985      this.env.group = prop.newid; 
    3987        
     3986 
    39883987      var newprop = $.extend({}, prop); 
    39893988      newprop.id = prop.newid; 
    39903989      newprop.type = 'group'; 
    3991        
     3990 
    39923991      link = $('<a>').attr('href', '#') 
    39933992        .attr('rel', prop.source+':'+prop.newid) 
     
    40094008    if (!elem) 
    40104009      elem = $('.ff_' + col); 
    4011      
     4010 
    40124011    elem.focus(function(){ ref.focus_textfield(this); }) 
    40134012      .blur(function(){ ref.blur_textfield(this); }) 
Note: See TracChangeset for help on using the changeset viewer.