summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-01-19 16:48:43 +0000
committerPhil Hughes <me@iamphill.com>2016-01-19 16:48:53 +0000
commit2821306a740d62153b1a9192cb912b04b42b9279 (patch)
tree82d563d4d0f79e749eaa98a72e30eb9ba335ba40
parentc8d66514efcf946f847cb3120b271d8f0f0327f2 (diff)
downloadgitlab-ce-2821306a740d62153b1a9192cb912b04b42b9279.tar.gz
when starring a project it correctly increase the star count
This is instead of increasing star & fork count Fixed #11396
-rw-r--r--app/assets/javascripts/star.js.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/star.js.coffee b/app/assets/javascripts/star.js.coffee
index d849b2e7950..f27780dda93 100644
--- a/app/assets/javascripts/star.js.coffee
+++ b/app/assets/javascripts/star.js.coffee
@@ -6,7 +6,7 @@ class @Star
$starIcon = $this.find('i')
toggleStar = (isStarred) ->
- $this.parent().find('span.count').text data.star_count
+ $this.parent().find('.star-count').text data.star_count
if isStarred
$starSpan.removeClass('starred').text 'Star'
$starIcon.removeClass('fa-star').addClass 'fa-star-o'
@@ -19,4 +19,4 @@ class @Star
return
).on 'ajax:error', (e, xhr, status, error) ->
new Flash('Star toggle failed. Try again later.', 'alert')
- return \ No newline at end of file
+ return