Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
star not duplicating the title over the tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
cyntss committed Jun 20, 2016
1 parent e7629b7 commit cb033f4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/views/repositories/star.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,14 @@
var element = $('#toggle_star');

if (<%= @repository.starred_by?(user) %>) {
element.attr('title', 'Unstar repository');
element.attr('data-original-title', 'Unstar repository');
element.find('.fa').removeClass('fa-star-o');
element.find('.fa').addClass('fa-star');
} else {
element.attr('title', 'Star repository');
element.attr('data-original-title', 'Star repository');
element.find('.fa').removeClass('fa-star');
element.find('.fa').addClass('fa-star-o');
}
$('#star-counter').text(<%= @repository.stars.count %>);

<% end %>

0 comments on commit cb033f4

Please sign in to comment.