diff --git a/app/assets/javascripts/subscription.js.coffee b/app/assets/javascripts/subscription.js.coffee index 084f0e0dc65..78ed819fb4b 100644 --- a/app/assets/javascripts/subscription.js.coffee +++ b/app/assets/javascripts/subscription.js.coffee @@ -7,6 +7,7 @@ class @Subscription @subscribe_button.unbind('click').click(@toggleSubscription) toggleSubscription: (event) => + console.log 'toggleSubscription' btn = $(event.currentTarget) action = btn.find('span').text() current_status = @subscription_status.attr('data-status') diff --git a/app/views/shared/issuable/_sidebar.html.haml b/app/views/shared/issuable/_sidebar.html.haml index 46a7f325441..fe6bb77fdcc 100644 --- a/app/views/shared/issuable/_sidebar.html.haml +++ b/app/views/shared/issuable/_sidebar.html.haml @@ -150,3 +150,4 @@ new MilestoneSelect(); new LabelsSelect(); new IssuableContext(); + new Subscription('.subscription') \ No newline at end of file