This commit is contained in:
r888888888
2013-04-21 14:28:59 -07:00
parent c564199f0e
commit 3c20cfb971

View File

@@ -281,19 +281,17 @@
$("#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 { Danbooru.notice("Updating posts (" + Post.pending_update_count + " pending)...");
Danbooru.notice("Updating posts (" + Post.pending_update_count + " pending)...");
}
} }
} }
} }