fixes #1401
This commit is contained in:
@@ -281,14 +281,13 @@
|
|||||||
$("#edit").hide();
|
$("#edit").hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
Danbooru.Post.notice_update = function(x, hide_msg) {
|
Danbooru.Post.notice_update = function(x) {
|
||||||
if (x === "inc") {
|
if (x === "inc") {
|
||||||
Danbooru.Post.pending_update_count += 1;
|
Danbooru.Post.pending_update_count += 1;
|
||||||
Danbooru.notice("Updating posts (" + Danbooru.Post.pending_update_count + " pending)...");
|
Danbooru.notice("Updating posts (" + Danbooru.Post.pending_update_count + " pending)...");
|
||||||
} else {
|
} else {
|
||||||
Danbooru.Post.pending_update_count -= 1;
|
Danbooru.Post.pending_update_count -= 1;
|
||||||
|
|
||||||
if (!!hide_msg) {
|
|
||||||
if (Danbooru.Post.pending_update_count < 1) {
|
if (Danbooru.Post.pending_update_count < 1) {
|
||||||
Danbooru.notice("Posts updated");
|
Danbooru.notice("Posts updated");
|
||||||
} else {
|
} else {
|
||||||
@@ -296,7 +295,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
Danbooru.Post.update_data = function(data) {
|
Danbooru.Post.update_data = function(data) {
|
||||||
var $post = $("#post_" + data.id);
|
var $post = $("#post_" + data.id);
|
||||||
|
|||||||
Reference in New Issue
Block a user