From: Art Cancro Date: Mon, 23 Apr 2007 13:40:22 +0000 (+0000) Subject: Allow multiple addresses to be selected. X-Git-Tag: v7.86~3421 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=ede7209c71f09e45de1075bdd1ddbf668a13383e Allow multiple addresses to be selected. --- diff --git a/webcit/addressbook_popup.c b/webcit/addressbook_popup.c index 41753f33e..43f12032a 100644 --- a/webcit/addressbook_popup.c +++ b/webcit/addressbook_popup.c @@ -9,6 +9,20 @@ #include "webcit.h" +/** + * \brief Call this right before wDumpContent() on any page which requires the address book popup + */ +void address_book_popup(void) { + /* Open a new div, hidden initially, for address book popups. */ + wprintf("\n"); /* End of 'content' div */ + wprintf("
"); + wprintf("
"); + wprintf("
"); + wprintf("
"); + wprintf("
"); + /* The 'address_book_popup' div will be closed by wDumpContent() */ +} + /** * \brief Address book popup window */ @@ -73,7 +87,7 @@ void display_address_book_inner_div() { begin_ajax_response(); wprintf("
" - "\n"); if (!strcasecmp(bstr("which_addr_book"), "__LOCAL_USERS__")) { serv_puts("LIST"); @@ -105,13 +119,7 @@ void display_address_book_inner_div() { wprintf("\n"); wprintf(" 0) { $('%s').value = $('%s').value + ', '; } $('%s').value=$('%s').value + $('whichaddr').value;\">", - bstr("target_input"), - bstr("target_input"), - bstr("target_input"), - bstr("target_input"), - bstr("target_input") - ); + wprintf("onClick=\"AddContactsToTarget($('%s'),$('whichaddr'));\">", bstr("target_input")); wprintf(""); diff --git a/webcit/event.c b/webcit/event.c index 9c283c6e4..3ac9e4748 100644 --- a/webcit/event.c +++ b/webcit/event.c @@ -348,7 +348,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum) ""); wprintf(_("(One per line)")); wprintf("" - "