Archived
1
0

add captcha updating

This commit is contained in:
Jeff Becker
2016-04-30 16:20:27 -04:00
parent 950441ef45
commit 68a83205ab
2 changed files with 4 additions and 2 deletions

View File

@@ -216,6 +216,7 @@ DynReply.prototype.showError = function(msg) {
console.log("error in dynreply: "+msg);
this._error.setAttribute("class", "error");
this._error.appendChild(document.createTextNode(msg));
this.updateCaptcha();
}
DynReply.prototype.showMessage = function(msg) {
@@ -356,6 +357,7 @@ function init(prefix) {
} else {
// we're good
r.showMessage("posted as "+j.message_id);
r.updateCaptcha();
}
}, function(err) {
r.showError(err);