summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2016-11-22 15:56:52 -0600
committerMike Greiling <mike@pixelcog.com>2016-11-30 17:15:25 -0600
commit85a82ed4d6ef12100a7e4df19e6b6506a92e2ee9 (patch)
tree8d4c374a5b082f727e200c6c68336bd8466d1ef6 /app/assets
parentd23a888ba3cc31a1f6f69d70a090acd3625b186b (diff)
downloadgitlab-ce-85a82ed4d6ef12100a7e4df19e6b6506a92e2ee9.tar.gz
use less error-prone lowercase comparison for isSubscribed
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/subscription.js.es62
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/subscription.js.es6 b/app/assets/javascripts/subscription.js.es6
index f043e3e6850..ae596916c9d 100644
--- a/app/assets/javascripts/subscription.js.es6
+++ b/app/assets/javascripts/subscription.js.es6
@@ -24,7 +24,7 @@
}
button.classList.add('disabled');
- const isSubscribed = buttonSpan.innerHTML.trim() !== 'Subscribe';
+ const isSubscribed = buttonSpan.innerHTML.trim().toLowerCase() !== 'subscribe';
const toggleActionUrl = this.containerElm.getAttribute('data-url');
$.post(toggleActionUrl, () => {