Archived
1
0

fix js mor

This commit is contained in:
Jeff Becker 2017-09-30 12:13:28 -04:00
parent 2284fac632
commit 54fde6ae2e
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -131,16 +131,16 @@ onready(function() {
console.log(msg, j.url);
e.innerHTML = msg;
if(window.location.pathname === j.url) {
var img = document.getElementById("captcha_img");
if (img) {
reloadImg(img);
}
reloadThreadJSON(j.message_id);
} else if (j && j.url) {
// do redirect
window.location.pathname = j.url;
return;
}
var img = document.getElementById("captcha_img");
if (img) {
reloadImg(img);
}
setTimeout(function() {
e.disabled = false;
e.innerHTML = origText;