X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Faddressbook_popup.c;h=7f35fa0d50a5db7319954b287f4081acd773acc3;hb=6ec73d6906542ea2f8cca2e62f7625ee2e17ae03;hp=6cfb5b5c3a8b02c918d619ac102628334d257857;hpb=95749fd514c4e6041e3117f20f0d7b461dc379cc;p=citadel.git diff --git a/webcit/addressbook_popup.c b/webcit/addressbook_popup.c index 6cfb5b5c3..7f35fa0d5 100644 --- a/webcit/addressbook_popup.c +++ b/webcit/addressbook_popup.c @@ -28,12 +28,16 @@ void display_address_book_middle_div(void) { char buf[256]; long len; char *Name; + const char *VCName; void *Namee; + StrBuf *DefAddrBook; HashList *List; HashPos *it; begin_ajax_response(); + DefAddrBook = get_room_pref("defaddrbook"); + wprintf(""); wprintf(""); wprintf("
"); @@ -44,8 +48,10 @@ void display_address_book_middle_div(void) { bstr("target_input") ); - wprintf("\n"); @@ -61,11 +67,14 @@ void display_address_book_middle_div(void) { } SortByHashKey(List, 1); - it = GetNewHashPos(); - while (GetNextHashPos(List, it, &len, &Name, &Namee)) { + it = GetNewHashPos(List, 0); + while (GetNextHashPos(List, it, &len, &VCName, &Namee)) { wprintf("\n"); } @@ -79,9 +88,7 @@ void display_address_book_middle_div(void) { ">"); wprintf("
"); - wprintf("\n", + wprintf("", bstr("target_input") ); @@ -100,11 +107,12 @@ void display_address_book_inner_div() { char target_label[64]; long len; char *Name; + const char *VCName; void *Namee; HashList *List; HashPos *it; int i; - char saved_roomname[128]; + StrBuf *saved_roomname; begin_ajax_response(); @@ -126,8 +134,8 @@ void display_address_book_inner_div() { } SortByHashKey(List, 1); - it = GetNewHashPos(); - while (GetNextHashPos(List, it, &len, &Name, &Namee)) { + it = GetNewHashPos(List, 0); + while (GetNextHashPos(List, it, &len, &VCName, &Namee)) { wprintf("