From 25bb22308df30f24cb8aa995c44a99d209f4084f Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Fri, 9 Sep 2005 04:43:23 +0000 Subject: [PATCH] * Checked in a copy of the "script.aculo.us" library by Thomas Fuchs. NOTE: I had to search-and-replace "Effect" to "ScriptaculousEffect" in all of their files, to avoid a conflict with the name "Effect" in Rico. * Implemented recipient autocompletion when composing mail, using the script.aculo.us drop-down box and an ajax fetch. Cool!! Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) --- webcit/ChangeLog | 9 ++++++++- webcit/Makefile.in | 4 ++-- webcit/README.txt | 5 +++++ webcit/messages.c | 19 +++++++++++++++++-- webcit/webcit.c | 3 +++ webcit/webcit.h | 1 + 6 files changed, 36 insertions(+), 5 deletions(-) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 86843c2e2..0b0f9f903 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,4 +1,12 @@ $Log$ +Revision 621.34 2005/09/09 04:43:22 ajc +* Checked in a copy of the "script.aculo.us" library by Thomas Fuchs. + NOTE: I had to search-and-replace "Effect" to "ScriptaculousEffect" in + all of their files, to avoid a conflict with the name "Effect" in Rico. +* Implemented recipient autocompletion when composing mail, using the + script.aculo.us drop-down box and an ajax fetch. Cool!! +Copyright (c) 2005 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) + Revision 621.33 2005/09/06 14:44:28 ajc * Altered the logic which determines whether to display a "Post message" or "Send message" button on the message entry screen. @@ -2919,4 +2927,3 @@ Sun Dec 6 19:50:55 EST 1998 Art Cancro 1998-12-03 Nathan Bryant * webserver.c: warning fix - diff --git a/webcit/Makefile.in b/webcit/Makefile.in index b53acba4e..9c5cbe4de 100644 --- a/webcit/Makefile.in +++ b/webcit/Makefile.in @@ -38,7 +38,7 @@ webserver: webserver.o context_loop.o tools.o ical_dezonify.o \ calendar.o calendar_tools.o calendar_view.o event.o \ availability.o iconbar.o crypto.o inetconf.o notes.o \ groupdav_main.o groupdav_get.o groupdav_propfind.o fmt_date.o \ - groupdav_options.o \ + groupdav_options.o autocompletion.o \ groupdav_delete.o groupdav_put.o http_datestring.o setup_wizard.o \ $(LIBOBJS) $(CC) webserver.o context_loop.o tools.o cookie_conversion.o \ @@ -49,7 +49,7 @@ webserver: webserver.o context_loop.o tools.o ical_dezonify.o \ summary.o calendar.o calendar_tools.o calendar_view.o event.o \ availability.o ical_dezonify.o iconbar.o crypto.o inetconf.o notes.o \ groupdav_main.o groupdav_get.o groupdav_propfind.o groupdav_delete.o \ - groupdav_options.o \ + groupdav_options.o autocompletion.o \ groupdav_put.o http_datestring.o setup_wizard.o fmt_date.o \ $(LIBOBJS) $(LIBS) $(LDFLAGS) -o webserver diff --git a/webcit/README.txt b/webcit/README.txt index 9476927d2..fc02c199b 100644 --- a/webcit/README.txt +++ b/webcit/README.txt @@ -23,6 +23,11 @@ Stephenson [http://prototype.conio.net]. These components are licensed to you under the terms of an MIT-style license. + WebCit bundles the script.aculo.us JavaScript library, written by + Thomas Fuchs [http://script.aculo.us, http://mir.aculo.us]. These + components are licensed to you under the terms of an MIT-style license. + + The Citadel logo was designed by Lisa Aurigemma. INTRODUCTION diff --git a/webcit/messages.c b/webcit/messages.c index eda02b0af..38be780a4 100644 --- a/webcit/messages.c +++ b/webcit/messages.c @@ -2054,6 +2054,11 @@ void display_enter(void) /* begin message entry screen */ + + wprintf( + " \n " + ); + wprintf("
"); wprintf("" - "\n"); + wprintf("\" size=50 maxlength=70>"); + + wprintf("
"); + + wprintf("\n " + ); + + wprintf("\n"); } wprintf(""); diff --git a/webcit/webcit.c b/webcit/webcit.c index 1c19ec3bd..04ed98102 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -1351,6 +1351,8 @@ void session_loop(struct httprequest *req) display_preferences(); } else if (!strcasecmp(action, "set_preferences")) { set_preferences(); + } else if (!strcasecmp(action, "recp_autocomplete")) { + recp_autocomplete(); } else if (!strcasecmp(action, "diagnostics")) { output_headers(1, 1, 1, 0, 0, 0, 0); wprintf("Session: %d
\n", WC->wc_session); @@ -1362,6 +1364,7 @@ void session_loop(struct httprequest *req) wprintf("
\n"); wDumpContent(1); } + /* When all else fais, display the main menu. */ else { display_main_menu(); diff --git a/webcit/webcit.h b/webcit/webcit.h index 21afcc042..393646d52 100644 --- a/webcit/webcit.h +++ b/webcit/webcit.h @@ -522,6 +522,7 @@ void save_inetconf(void); void generate_uuid(char *); void display_preferences(void); void set_preferences(void); +void recp_autocomplete(void); #ifdef WEBCIT_WITH_CALENDAR_SERVICE void display_edit_task(void); -- 2.39.2