X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Faddressbook_popup.c;h=c119cc18ee0b206df714070fa64cfe5367e48dcf;hb=HEAD;hp=41753f33e1eba6e70185c850f3a9642a74524cd1;hpb=0b7f228495c8c07871bb355f1900ac29c42356c5;p=citadel.git diff --git a/webcit/addressbook_popup.c b/webcit/addressbook_popup.c index 41753f33e..afbf3a0c7 100644 --- a/webcit/addressbook_popup.c +++ b/webcit/addressbook_popup.c @@ -1,124 +1,84 @@ /* - * $Id: $ - *//** - * \defgroup AjaxAutoCompletion ajax-powered autocompletion... - * \ingroup ClientPower + * Dynamic HTML (formerly known as "AJAX") powered auto-completion + * + * Copyright (c) 1996-2012 by the citadel.org team + * + * This program is open source software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. */ -/*@{*/ #include "webcit.h" -/** - * \brief Address book popup window - */ -void display_address_book_middle_div(void) { - char buf[256]; - char ebuf[256]; - - begin_ajax_response(); - - wprintf(""); - wprintf(""); - wprintf(""); - wprintf("
"); - - wprintf("
" - "
"); - - wprintf("
"); - wprintf("
"); - - wprintf("\n", - bstr("target_input") - ); - - end_ajax_response(); -} - - - -/** - * \brief Address book popup results +/* + * Address book popup results */ -void display_address_book_inner_div() { - char buf[256]; - char username[256]; - - begin_ajax_response(); - - wprintf("
" - "\n"); + if (!IsLocalAddrBook) { + gotoroom(saved_roomname); + FreeStrBuf(&saved_roomname); + } + + return List; +} - 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(""); - wprintf("
\n"); - end_ajax_response(); -} +void +InitModule_ADDRBOOK_POPUP +(void) +{ -/** @} */ + RegisterIterator("ITERATE:ABNAMES", 0, NULL, GetAddressbookList, NULL, NULL, CTX_STRBUF, CTX_NONE, IT_NOFLAG); +}