char response_string[1024];
if ((h->request_body == NULL) || (h->request_body_length < 1)) {
- do_404(h); // Refuse to post a null message
+ do_404(h); // Refuse to post a null message
return;
}
+ _("Cancel")
+ "</a></span>"
- + "</span>"; // end buttons on right side
- if (msg.subj) {
- replybox +=
- "<br><span class=\"ctdl-msgsubject\">" + "FIXME subject" + "</span>";
- }
- replybox +=
- "</div><br>" // end footer
+ + "</span>" // end buttons on right side
+ + "</div><br>" // end footer
+ "</div>" // end content
document.getElementById(div_name).outerHTML = ""; // close the editor
}
else {
- alert(_("An error has occurred.")); // inelegant but hopefully infrequent
+ error_message = request.responseText;
+ if (error_message.length == 0) {
+ error_message = _("An error has occurred.");
+ }
+ alert(error_message); // FIXME make this pretty
}
}
};