fixes #1922
This commit is contained in:
@@ -23,11 +23,13 @@
|
|||||||
|
|
||||||
Danbooru.notice = function(msg) {
|
Danbooru.notice = function(msg) {
|
||||||
$('#notice').addClass("ui-state-highlight").removeClass("ui-state-error").fadeIn("fast").children("span").html(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) {
|
Danbooru.error = function(msg) {
|
||||||
$('#notice').removeClass("ui-state-highlight").addClass("ui-state-error").fadeIn("fast").children("span").html(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) {
|
Danbooru.is_subset = function(array, subarray) {
|
||||||
|
|||||||
@@ -11,8 +11,13 @@ div.error-messages {
|
|||||||
div#notice {
|
div#notice {
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
|
position: fixed;
|
||||||
|
top: 1em;
|
||||||
|
right: 1em;
|
||||||
|
z-index: 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
a#close-notice-link {
|
a#close-notice-link {
|
||||||
float: right;
|
float: right;
|
||||||
|
margin-left: 1em;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user