Archived
1
0
This commit is contained in:
Jeff Becker 2017-01-16 14:54:38 -05:00
parent e2f509641a
commit 5727543e28

View File

@ -100,7 +100,7 @@ ReplyBox.prototype.result = function(msg, color) {
$(self._error).css("color", color);
self._error.appendChild(document.createTextNode(msg));
setTimeout(function() {
$(self._error).fadeout(1000, function() {
$(self._error).fadeOut(1000, function() {
self._error.innerHTML = "";
});
}, 1000);
@ -159,7 +159,7 @@ ReplyBox.prototype.show = function(info) {
method: "POST",
dataType: "json"
}).success(function(data, status, xhr) {
if(xhr.statusCode == 201) {
if(data.message_id) {
self.result("posted as "+data.message_id, "green");
self.clear();
setTimeout(1000, function() {