This commit is contained in:
Toks
2013-08-10 20:19:13 -04:00
parent 2db57fc595
commit 069eabaaef
2 changed files with 8 additions and 1 deletions

View File

@@ -23,11 +23,13 @@
Danbooru.notice = function(msg) {
$('#notice').addClass("ui-state-highlight").removeClass("ui-state-error").fadeIn("fast").children("span").html(msg);
setTimeout(function() {
$("#close-notice-link").click();
}, 6000);
}
Danbooru.error = function(msg) {
$('#notice').removeClass("ui-state-highlight").addClass("ui-state-error").fadeIn("fast").children("span").html(msg);
Danbooru.scroll_to($("#notice"));
}
Danbooru.is_subset = function(array, subarray) {

View File

@@ -11,8 +11,13 @@ div.error-messages {
div#notice {
margin: 1em 0;
padding: 1em;
position: fixed;
top: 1em;
right: 1em;
z-index: 100;
}
a#close-notice-link {
float: right;
margin-left: 1em;
}