Don't autoclose tag script "Updating posts" message

This commit is contained in:
Toks
2013-08-31 12:15:41 -04:00
parent c21543db95
commit 91251ce47b
2 changed files with 8 additions and 6 deletions

View File

@@ -21,11 +21,13 @@
$('html, body').animate({scrollTop: top}, 300, "linear", function() {Danbooru.scrolling = false;});
}
Danbooru.notice = function(msg) {
Danbooru.notice = function(msg, permanent) {
$('#notice').addClass("ui-state-highlight").removeClass("ui-state-error").fadeIn("fast").children("span").html(msg);
setTimeout(function() {
$("#close-notice-link").click();
}, 6000);
if (!permanent) {
setTimeout(function() {
$("#close-notice-link").click();
}, 6000);
}
}
Danbooru.error = function(msg) {