Changeset 7961f8c in github


Ignore:
Timestamp:
Jan 5, 2012 11:15:37 AM (17 months ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.8
Children:
becca08
Parents:
8304e5d
Message:

Embed address book widget on compose screen

Location:
skins/larry
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • skins/larry/mail.css

    r543ccbb r7961f8c  
    962962} 
    963963 
     964#compose-contacts #directorylist { 
     965        border-bottom: 4px solid #c7e3ef; 
     966} 
     967 
     968#contacts-table { 
     969        table-layout: fixed; 
     970} 
     971 
     972#contacts-table td { 
     973        width: 100%; 
     974} 
     975 
     976#contacts-table td span { 
     977        display: block; 
     978} 
     979 
     980#compose-contacts li a, #contacts-table td { 
     981        background: url(images/listicons.png) -100px 0 no-repeat; 
     982        overflow: hidden; 
     983        padding-left: 36px; 
     984        text-overflow: ellipsis; 
     985} 
     986 
     987#compose-contacts li.addressbook a { 
     988        background-position: 6px -766px; 
     989} 
     990 
     991#compose-contacts li.addressbook.selected a { 
     992        background-position: 6px -791px; 
     993} 
     994 
     995#contacts-table td.contactgroup { 
     996        background-position: 6px -1555px; 
     997} 
     998 
     999#contacts-table tr.unfocused td.contactgroup, 
     1000#contacts-table tr.selected td.contactgroup { 
     1001        background-position: 6px -1579px; 
     1002} 
     1003 
     1004#contacts-table td.contact { 
     1005        background-position: 6px -1603px; 
     1006} 
     1007 
     1008#contacts-table tr.unfocused td.contact, 
     1009#contacts-table tr.selected td.contact { 
     1010        background-position: 6px -1627px; 
     1011} 
     1012 
     1013 
    9641014#compose-content { 
    9651015        position: absolute; 
  • skins/larry/styles.css

    r0e530bd r7961f8c  
    737737.listbox .listitem.selected > a, 
    738738.listbox .tablink.selected > a, 
     739.listing tbody tr.unfocused td, 
    739740.listing tbody tr.selected td, 
    740741.listing li.selected, 
  • skins/larry/templates/compose.html

    r4deb1ef r7961f8c  
    1818<h2 class="boxtitle"><roundcube:label name="contacts" /></h2> 
    1919<div class="scroller withfooter"> 
    20          
     20        <roundcube:object name="adressbooks" id="directorylist" class="listing" /> 
     21        <roundcube:object name="addresslist" id="contacts-table" class="listing" noheader="true" /> 
    2122</div> 
    2223<div class="boxfooter"> 
    2324        <roundcube:button command="add-recipient" prop="to" type="link" title="to" class="listbutton addto disabled" classAct="listbutton addto" innerClass="inner" content="To+" /><roundcube:button command="add-recipient" prop="cc" type="link" title="cc" class="listbutton addcc disabled" classAct="listbutton addcc" innerClass="inner" content="Cc+" /><roundcube:button command="add-recipient" prop="bcc" type="link" title="bcc" class="listbutton addbcc disabled" classAct="listbutton addbcc" innerClass="inner" content="Bcc+" /> 
     25</div> 
     26<div class="boxpagenav"> 
     27        <roundcube:button command="firstpage" type="link" class="icon firstpage disabled" classAct="icon firstpage" title="firstpage" content="|&amp;lt;" /> 
     28        <roundcube:button command="previouspage" type="link" class="icon prevpage disabled" classAct="icon prevpage" title="previouspage" content="&amp;lt;" /> 
     29        <roundcube:button command="nextpage" type="link" class="icon nextpage disabled" classAct="icon nextpage" title="nextpage" content="&amp;gt;" /> 
     30        <roundcube:button command="lastpage" type="link" class="icon lastpage disabled" classAct="icon lastpage" title="lastpage" content="&amp;gt;|" /> 
    2431</div> 
    2532</div> 
  • skins/larry/ui.js

    r0e530bd r7961f8c  
    8383        rcmail.addEventListener('aftertoggle-editor', function(){ window.setTimeout(function(){ layout_composeview() }, 100); }); 
    8484        rcmail.addEventListener('aftersend-attachment', show_uploadform); 
     85        rcmail.addEventListener('add-recipient', function(p){ show_header_row(p.field, true); }); 
    8586        layout_composeview(); 
    8687 
     
    183184      } 
    184185    }); 
    185      
    186     $(window).resize(resize); 
     186 
     187    $(window).resize(function(e) { 
     188      // check target due to bugs in jquery 
     189      // http://bugs.jqueryui.com/ticket/7514 
     190      // http://bugs.jquery.com/ticket/9841 
     191      if (e.target == window) resize(); 
     192    }); 
    187193  } 
    188194 
     
    632638   * 
    633639   */ 
    634   function show_header_row(which) 
    635   { 
    636     if (compose_headers[which]) 
     640  function show_header_row(which, updated) 
     641  { 
     642    var row = $('#compose-' + which); 
     643    if (row.is(':visible')) 
     644      return;  // nothing to be done here 
     645 
     646    if (compose_headers[which] && !updated) 
    637647      $('#_' + which).val(compose_headers[which]); 
    638     $('#compose-' + which).show(); 
     648 
     649    row.show(); 
    639650    $('#' + which + '-link').hide(); 
    640651    layout_composeview(); 
Note: See TracChangeset for help on using the changeset viewer.