diff --git a/app/assets/javascripts/application.js.erb.coffee b/app/assets/javascripts/application.js.erb.coffee index dac8fcc4..3846c6df 100644 --- a/app/assets/javascripts/application.js.erb.coffee +++ b/app/assets/javascripts/application.js.erb.coffee @@ -117,7 +117,7 @@ $(document).on "click", "button[name=ab-smile]", -> aid = btn[0].dataset.aId action = btn[0].dataset.action count = Number $("span#ab-smile-count-#{aid}").html() - btn[0].dataset.loadingText = "" + btn[0].dataset.loadingText = " #{count}" btn.button "loading" target_url = switch action @@ -149,10 +149,10 @@ $(document).on "click", "button[name=ab-smile]", -> switch action when 'smile' btn[0].dataset.action = 'unsmile' - btn.html "" + btn.html " #{count}" when 'unsmile' btn[0].dataset.action = 'smile' - btn.html "" + btn.html " #{count}" $(document).on "click", "button[name=ab-comments]", -> btn = $(this)