| | |
| | | if (this.gui_objects.contactslist) { |
| | | this.contact_list = new rcube_list_widget(this.gui_objects.contactslist, |
| | | { multiselect:true, draggable:false, keyboard:false }); |
| | | this.contact_list.addEventListener('select', function(o){ ref.compose_recipeint_select(o); }); |
| | | this.contact_list.addEventListener('select', function(o){ ref.compose_recipient_select(o); }); |
| | | this.contact_list.addEventListener('dblclick', function(o){ ref.compose_add_recipient('to'); }); |
| | | this.contact_list.init(); |
| | | } |
| | | |
| | | if (this.gui_objects.adressbookslist) { |
| | | this.gui_objects.folderlist = this.gui_objects.adressbookslist; |
| | | if (this.gui_objects.addressbookslist) { |
| | | this.gui_objects.folderlist = this.gui_objects.addressbookslist; |
| | | this.enable_command('list-adresses', true); |
| | | } |
| | | } |
| | |
| | | .attr('autocomplete', 'off'); |
| | | }; |
| | | |
| | | this.compose_recipeint_select = function(list) |
| | | this.compose_recipient_select = function(list) |
| | | { |
| | | this.enable_command('add-recipient', list.selection.length > 0); |
| | | }; |
| | |
| | | } |
| | | |
| | | |
| | | function rcmail_adressbook_list($attrib = array()) |
| | | function rcmail_addressbook_list($attrib = array()) |
| | | { |
| | | global $RCMAIL, $OUTPUT; |
| | | |
| | |
| | | $js_id, (!empty($source['name']) ? Q($source['name']) : Q($id))); |
| | | } |
| | | |
| | | $OUTPUT->add_gui_object('adressbookslist', $attrib['id']); |
| | | $OUTPUT->add_gui_object('addressbookslist', $attrib['id']); |
| | | |
| | | return html::tag('ul', $attrib, $out, html::$common_attrib); |
| | | } |
| | |
| | | 'receiptcheckbox' => 'rcmail_receipt_checkbox', |
| | | 'dsncheckbox' => 'rcmail_dsn_checkbox', |
| | | 'storetarget' => 'rcmail_store_target_selection', |
| | | 'adressbooks' => 'rcmail_adressbook_list', |
| | | 'addressbooks' => 'rcmail_addressbook_list', |
| | | 'addresslist' => 'rcmail_contacts_list', |
| | | )); |
| | | |
| | |
| | | <!-- inline address book --> |
| | | <div id="compose-contacts" class="uibox listbox"> |
| | | <h2 class="boxtitle"><roundcube:label name="contacts" /></h2> |
| | | <roundcube:object name="adressbooks" id="directorylist" class="listing" /> |
| | | <roundcube:object name="addressbooks" id="directorylist" class="listing" /> |
| | | <div class="scroller withfooter"> |
| | | <roundcube:object name="addresslist" id="contacts-table" class="listing" noheader="true" /> |
| | | </div> |
| | |
| | | <div id="countcontrols" class="pagenav"> |
| | | <roundcube:if condition="env:mailbox != config:drafts_mbox"> |
| | | <roundcube:button command="reply" type="link" class="button reply" classSel="button reply pressed" innerClass="inner" title="replytomessage" content="<-" /> |
| | | <roundcube:button command="replyall" type="link" class="button replyall" classSel="button replyall pressed" innerClass="inner" title="replytoallmessage" content="<<-" /> |
| | | <roundcube:button command="reply-all" type="link" class="button replyall" classSel="button replyall pressed" innerClass="inner" title="replytoallmessage" content="<<-" /> |
| | | <roundcube:button command="forward" type="link" class="button forward" classSel="button forward pressed" innerClass="inner" title="forwardmessage" content="->" /> |
| | | |
| | | <roundcube:endif /> |