X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fstatic%2Fwclib.js;fp=webcit%2Fstatic%2Fwclib.js;h=9a159a112b509db88adfd702f5dd42e58d7cf41e;hb=0b328597a0ba44d25433555bde3ef7f8772a388c;hp=c7d8a8516a3569c60ba970eeb2e98f8ddc9f6b00;hpb=75c0699566df768850f70d6b658ea99c38ecb953;p=citadel.git
diff --git a/webcit/static/wclib.js b/webcit/static/wclib.js
index c7d8a8516..9a159a112 100644
--- a/webcit/static/wclib.js
+++ b/webcit/static/wclib.js
@@ -690,7 +690,7 @@ function PopOpenAddressBook(target_input) {
p = 'target_input=' + target_input + '&r=' + CtdlRandomString();
new Ajax.Updater(
'address_book_popup_middle_div',
- 'display_address_book_middle_div',
+ 'do_template?template=addressbook_list',
{
method: 'get',
parameters: p,
@@ -700,18 +700,19 @@ function PopOpenAddressBook(target_input) {
}
function PopulateAddressBookInnerDiv(which_addr_book, target_input) {
- $('address_book_inner_div').innerHTML = "
Loading.... |
";
- p = 'which_addr_book=' + which_addr_book
- + '&target_input=' + target_input
- + '&r=' + CtdlRandomString();
- new Ajax.Updater(
- 'address_book_inner_div',
- 'display_address_book_inner_div',
- {
- method: 'get',
- parameters: p
- }
- );
+ $('address_book_inner_div').innerHTML = " Loading.... |
";
+ p = 'which_addr_book=' + which_addr_book
+ + '&target_input=' + target_input
+ + '&r=' + CtdlRandomString()
+ + "&template=addressbook_namelist";
+ new Ajax.Updater(
+ 'address_book_inner_div',
+ 'do_template',
+ {
+ method: 'get',
+ parameters: p
+ }
+ );
}
// What happens when a contact is selected from the address book popup