Removed the 'room=' parameter from the wiki view. This functionality is provided...
[citadel.git] / webcit / addressbook_popup.c
index 13a2066e76b776b5f59b063d3404c0d492acbc8a..887198f574d24d2a4dc9d51d9672c5b1ece91905 100644 (file)
@@ -1,7 +1,15 @@
 /*
- * $Id$
- *
  * 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"
@@ -39,7 +47,7 @@ void display_address_book_middle_div(void) {
        DefAddrBook = get_room_pref("defaddrbook");
 
        wc_printf("<table border=0 width=100%%><tr valign=middle>");
-       wc_printf("<td align=left><img src=\"static/viewcontacts_32x.gif\"></td>");
+       wc_printf("<td align=left><img src=\"static/webcit_icons/essen/32x32/contact.png\"></td>");
        wc_printf("<td align=center>");
 
        wc_printf("<form>"
@@ -85,7 +93,7 @@ void display_address_book_middle_div(void) {
        wc_printf("</td>");
        wc_printf("<td align=right "
                "onclick=\"javascript:$('address_book_popup').style.display='none';\" "
-               "><img src=\"static/closewindow.gif\">");
+               "><img src=\"static/webcit_icons/closewindow.gif\">");
        wc_printf("</td></tr></table>");
 
        wc_printf("<script type=\"text/javascript\">PopulateAddressBookInnerDiv($('which_addr_book').value,'%s');</script>",
@@ -148,7 +156,7 @@ void display_address_book_inner_div() {
 
        else {
                set_room_pref("defaddrbook",NewStrBufDup(sbstr("which_addr_book")), 0);
-               saved_roomname = NewStrBufDup(WC->wc_roomname);
+               saved_roomname = NewStrBufDup(WC->CurRoom.name);
                gotoroom(sbstr("which_addr_book"));
                serv_puts("DVCA");
                serv_getln(buf, sizeof buf);