// Was this request a delete operation? If so, nuke it...
if (havebstr("deletenote")) {
if (!strcasecmp(bstr("deletenote"), "yes")) {
- serv_printf("DELE %ld", msgnum);
+ serv_printf("DELE %d", msgnum);
serv_getln(buf, sizeof buf);
begin_ajax_response();
wprintf("%s", buf);
readloop("readfwd");
}
+
+void
+InitModule_NOTES
+(void)
+{
+ WebcitAddUrlHandler(HKEY("add_new_note"), add_new_note, 0);
+ WebcitAddUrlHandler(HKEY("ajax_update_note"), ajax_update_note, 0);
+}