summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/subscription.js.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/subscription.js.coffee')
-rw-r--r--app/assets/javascripts/subscription.js.coffee5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/assets/javascripts/subscription.js.coffee b/app/assets/javascripts/subscription.js.coffee
index 1a430f3aa47..08d494aba9f 100644
--- a/app/assets/javascripts/subscription.js.coffee
+++ b/app/assets/javascripts/subscription.js.coffee
@@ -19,3 +19,8 @@ class @Subscription
action = if status == 'subscribed' then 'Unsubscribe' else 'Subscribe'
btn.find('span').text(action)
@subscription_status.find('>div').toggleClass('hidden')
+
+ if btn.attr('data-original-title')
+ btn.tooltip('hide')
+ .attr('data-original-title', action)
+ .tooltip('fixTitle')