$Log$
+Revision 625.8 2005/09/17 16:44:30 ajc
+* The JavaScript code to activate the ajax-powered recipient autocompleters
+ has been moved to a function in wclib.js (it's still activated from an
+ inline script in messages.c)
+
Revision 625.7 2005/09/17 13:18:05 ajc
* fmt_date.c: changes to "brief" mode. It now displays time only if the
date is today, month/day/time if the date is within the last six months,
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
-
/*
* Otherwise proceed normally.
-` * Do a custom room banner with no navbar...
+ * Do a custom room banner with no navbar...
*/
output_headers(1, 1, 2, 0, 0, 0, 0);
wprintf("<div id=\"banner\">\n");
wprintf("<div class=\"auto_complete\" id=\"bcc_name_choices\"></div>");
wprintf("</td><td></td></tr>\n");
- /* Initialize the autocomplete ajax helpers */
- wprintf("<script type=\"text/javascript\"> \n"
- " new Ajax.Autocompleter('cc_id', 'cc_name_choices', \n"
- " '/cc_autocomplete', {} ); \n"
- " new Ajax.Autocompleter('bcc_id', 'bcc_name_choices', \n"
- " '/bcc_autocomplete', {} ); \n"
- " new Ajax.Autocompleter('recp_id', 'recp_name_choices', \n"
- " '/recp_autocomplete', {} ); \n"
- "</script> \n"
+ /* Initialize the autocomplete ajax helpers (found in wclib.js) */
+ wprintf("<script type=\"text/javascript\"> \n"
+ " activate_entmsg_autocompleters(); \n"
+ "</script> \n"
);
-
}
wprintf("<tr><td>");
// new Effect.FadeTo('important_message', 0.0, 1000, 20, {complete:function() { hide_imsg_popup_old(); }} );
hide_imsg_popup_old(); // Do it the old way for now, to avoid library conflicts
}
+
+
+// This function activates the ajax-powered recipient autocompleters on the message entry screen.
+function activate_entmsg_autocompleters() {
+ new Ajax.Autocompleter('cc_id', 'cc_name_choices', '/cc_autocomplete', {} );
+ new Ajax.Autocompleter('bcc_id', 'bcc_name_choices', '/bcc_autocomplete', {} );
+ new Ajax.Autocompleter('recp_id', 'recp_name_choices', '/recp_autocomplete', {} );
+}