Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
2821306a
Commit
2821306a
authored
Jan 19, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
when starring a project it correctly increase the star count
This is instead of increasing star & fork count Fixed #11396
parent
c8d66514
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/assets/javascripts/star.js.coffee
app/assets/javascripts/star.js.coffee
+2
-2
No files found.
app/assets/javascripts/star.js.coffee
View file @
2821306a
...
...
@@ -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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment