Changeset 4008 in subversion


Ignore:
Timestamp:
Sep 29, 2010 8:24:01 AM (3 years ago)
Author:
alec
Message:
  • Add link to identities in compose window (#1486729)
Location:
trunk/roundcubemail
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r4007 r4008  
    33 
    44- Messages caching: performance improvements, fixed syncing, fixes related with #1486748 
     5- Add link to identities in compose window (#1486729) 
    56 
    67RELEASE 0.4.1 
  • trunk/roundcubemail/program/js/app.js

    r3997 r4008  
    226226        } 
    227227        else if (this.env.action == 'compose') { 
    228           this.enable_command('send-attachment', 'remove-attachment', 'send', 'toggle-editor', true); 
     228          this.env.compose_commands = ['send-attachment', 'remove-attachment', 'send', 'toggle-editor']; 
     229 
     230          if (this.env.drafts_mailbox) 
     231            this.env.compose_commands.push('savedraft') 
     232 
     233          this.enable_command(this.env.compose_commands, 'identities', true); 
    229234 
    230235          if (this.env.spellcheck) { 
    231236            this.env.spellcheck.spelling_state_observer = function(s){ ref.set_spellcheck_state(s); }; 
     237            this.env.compose_commands.push('spellcheck') 
    232238            this.set_spellcheck_state('ready'); 
    233239            if ($("input[name='_is_html']").val() == '1') 
    234240              this.display_spellcheck_controls(false); 
    235241          } 
    236  
    237           if (this.env.drafts_mailbox) 
    238             this.enable_command('savedraft', true); 
    239242 
    240243          document.onmouseup = function(e){ return p.doc_mouse_up(e); }; 
     
    426429 
    427430    // check input before leaving compose step 
    428     if (this.task=='mail' && this.env.action=='compose' 
    429         && (command == 'list' || command == 'mail' || command == 'addressbook' || command == 'settings')) { 
     431    if (this.task=='mail' && this.env.action=='compose' && $.inArray(command, this.env.compose_commands)<0) { 
    430432      if (this.cmp_hash != this.compose_field_hash() && !confirm(this.get_label('notsentwarning'))) 
    431433        return false; 
     
    975977 
    976978      case 'identities': 
    977         this.goto_url('identities'); 
     979        this.goto_url('settings/identities'); 
    978980        break; 
    979981 
    980982      case 'folders': 
    981         this.goto_url('folders'); 
     983        this.goto_url('settings/folders'); 
    982984        break; 
    983985 
     
    29432945 
    29442946    // enable manual signature insert 
    2945     if (this.env.signatures && this.env.signatures[id]) 
     2947    if (this.env.signatures && this.env.signatures[id]) { 
    29462948      this.enable_command('insert-sig', true); 
     2949      this.env.compose_commands.push('insert-sig'); 
     2950    } 
    29472951    else 
    29482952      this.enable_command('insert-sig', false); 
  • trunk/roundcubemail/program/localization/en_US/labels.inc

    r3989 r4008  
    205205$labels['returnreceipt']  = 'Return receipt'; 
    206206 
     207$labels['editidents']    = 'Edit identities'; 
    207208$labels['checkspelling'] = 'Check spelling'; 
    208209$labels['resumeediting'] = 'Resume editing'; 
  • trunk/roundcubemail/skins/default/mail.css

    r3989 r4008  
    12341234} 
    12351235 
    1236 #formlinks a, 
    1237 #formlinks a:visited 
     1236.formlinks a, 
     1237.formlinks a:visited 
    12381238{ 
    12391239  color: #999999; 
     
    12421242} 
    12431243 
    1244 #formlinks a, 
    1245 #formlinks a:visited 
     1244.formlinks a, 
     1245.formlinks a:visited 
    12461246{ 
    12471247  color: #CC0000; 
  • trunk/roundcubemail/skins/default/templates/compose.html

    r3814 r4008  
    5454        <tr> 
    5555            <td class="title"><label for="_from"><roundcube:label name="from" /></label></td> 
    56             <td class="editfield"><roundcube:object name="composeHeaders" part="from" form="form" id="_from" tabindex="1" /></td> 
     56            <td class="editfield formlinks"> 
     57                <roundcube:object name="composeHeaders" part="from" form="form" id="_from" tabindex="1" /> 
     58                <a href="#identities" onclick="return rcmail.command('identities')"><roundcube:label name="editidents" /></a> 
     59            </td> 
    5760        </tr><tr> 
    5861            <td class="title top"><label for="_to"><roundcube:label name="to" /></label></td> 
     
    7881        </tr><tr> 
    7982            <td></td> 
    80             <td id="formlinks"> 
     83            <td class="formlinks"> 
    8184                <a href="#cc" onclick="return rcmail_ui.show_header_form('cc')" id="cc-link"><roundcube:label name="addcc" /></a> 
    8285                <span class="separator">|</span> 
Note: See TracChangeset for help on using the changeset viewer.