diff options
author | Phil Hughes <me@iamphill.com> | 2016-01-19 19:48:43 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-01-19 19:48:53 +0300 |
commit | 2821306a740d62153b1a9192cb912b04b42b9279 (patch) | |
tree | 82d563d4d0f79e749eaa98a72e30eb9ba335ba40 /app/assets/javascripts/star.js.coffee | |
parent | c8d66514efcf946f847cb3120b271d8f0f0327f2 (diff) |
when starring a project it correctly increase the star count
This is instead of increasing star & fork count
Fixed #11396
Diffstat (limited to 'app/assets/javascripts/star.js.coffee')
-rw-r--r-- | app/assets/javascripts/star.js.coffee | 4 |
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 |