From 3c20cfb9712eb9cfbb0207eafb5db2247fb8a2b5 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Sun, 21 Apr 2013 14:28:59 -0700 Subject: [PATCH] fixes #1401 --- app/assets/javascripts/posts.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/assets/javascripts/posts.js b/app/assets/javascripts/posts.js index 897605fc0..6983d0633 100644 --- a/app/assets/javascripts/posts.js +++ b/app/assets/javascripts/posts.js @@ -281,19 +281,17 @@ $("#edit").hide(); } - Danbooru.Post.notice_update = function(x, hide_msg) { + Danbooru.Post.notice_update = function(x) { if (x === "inc") { Danbooru.Post.pending_update_count += 1; Danbooru.notice("Updating posts (" + Danbooru.Post.pending_update_count + " pending)..."); } else { Danbooru.Post.pending_update_count -= 1; - if (!!hide_msg) { - if (Danbooru.Post.pending_update_count < 1) { - Danbooru.notice("Posts updated"); - } else { - Danbooru.notice("Updating posts (" + Post.pending_update_count + " pending)..."); - } + if (Danbooru.Post.pending_update_count < 1) { + Danbooru.notice("Posts updated"); + } else { + Danbooru.notice("Updating posts (" + Post.pending_update_count + " pending)..."); } } }