From 6933cfba2671e7f9977c0d4cd893e6fa139fe04d Mon Sep 17 00:00:00 2001 From: albert Date: Fri, 22 Mar 2013 10:25:01 -0700 Subject: [PATCH] fixes #972 --- app/views/favorites/create.js.erb | 1 + app/views/favorites/destroy.js.erb | 1 + 2 files changed, 2 insertions(+) diff --git a/app/views/favorites/create.js.erb b/app/views/favorites/create.js.erb index 505a7461f..6a0cc2912 100644 --- a/app/views/favorites/create.js.erb +++ b/app/views/favorites/create.js.erb @@ -5,4 +5,5 @@ $("a#remove-from-favorites").show(); $("#score-for-post-<%= @post.id %>").html(<%= @post.score %>); $("#favcount-for-post-<%= @post.id %>").html(<%= @post.fav_count %>); + Danbooru.notice("You have favorited this post"); <% end %> diff --git a/app/views/favorites/destroy.js.erb b/app/views/favorites/destroy.js.erb index 0ec951fab..2ece21748 100644 --- a/app/views/favorites/destroy.js.erb +++ b/app/views/favorites/destroy.js.erb @@ -2,3 +2,4 @@ $("a#add-to-favorites").show(); $("a#remove-from-favorites").hide(); $("#score-for-post-<%= @post.id %>").html(<%= @post.score %>); $("#favcount-for-post-<%= @post.id %>").html(<%= @post.fav_count %>); +Danbooru.notice("You have unfavorited this post");