Adressbook-popup: set link using the template.
authorWilfried Goesgens <dothebart@citadel.org>
Fri, 24 Aug 2012 12:06:23 +0000 (14:06 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Fri, 24 Aug 2012 12:06:23 +0000 (14:06 +0200)
webcit/addressbook_popup.c
webcit/event.c
webcit/webcit.h

index 887198f574d24d2a4dc9d51d9672c5b1ece91905..72ab054d07a81a9749993a6b8e1f8e72e5899dd7 100644 (file)
 #include "webcit.h"
 
 
-/*
- * 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. */
-       wc_printf("</div>\n");  /* End of 'content' div */
-       wc_printf("<div id=\"address_book_popup\" style=\"display:none;\">");
-       wc_printf("<div id=\"address_book_popup_container_div\">");
-       wc_printf("<div id=\"address_book_popup_middle_div\"></div>");
-       wc_printf("<div id=\"address_book_inner_div\"></div>");
-       wc_printf("</div>");
-       /* The 'address_book_popup' div will be closed by wDumpContent() */
-}
-
 /*
  * Address book popup window
  */
index c3c2ba3d67d337ca0c2aed3e49cde48176cc07af..6d6bb5619a9145b3bd8c62cfccdac8422ba7e15d 100644 (file)
@@ -779,7 +779,8 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum,
                "RecurrenceShowHide();          \n"
                "EnableOrDisableCheckButton();  \n"
        );
-       address_book_popup();
+       do_template("addressbook_popup");
+
        wDumpContent(1);
 
        if (created_new_vevent) {
index 65f2d11dc63f965685c8d9866ed306246fe5248b..5fa6ddf610dbe762453de6ea1d7ad61b2a672364 100644 (file)
@@ -677,7 +677,6 @@ void output_html(const char *, int, int, StrBuf *, StrBuf *);
 ssize_t write(int fd, const void *buf, size_t count);
 void cal_process_attachment(wc_mime_attachment *Mime);
 
-void address_book_popup(void);
 void begin_ajax_response(void);
 void end_ajax_response(void);