From 43a8e3a693efbbb43f4871332af6235786f18adc Mon Sep 17 00:00:00 2001 From: Jacob Schatz Date: Sat, 19 Mar 2016 12:44:58 -0400 Subject: Fix subscription button by hooking it back up. --- app/assets/javascripts/subscription.js.coffee | 1 + app/views/shared/issuable/_sidebar.html.haml | 1 + 2 files changed, 2 insertions(+) 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 -- cgit v1.2.1