diff --git a/pagure/themes/srcfpo/templates/repo_info.html b/pagure/themes/srcfpo/templates/repo_info.html index 889471d..4ea0565 100644 --- a/pagure/themes/srcfpo/templates/repo_info.html +++ b/pagure/themes/srcfpo/templates/repo_info.html @@ -124,8 +124,7 @@
{% if g.authenticated and not g.repo_starred %} - + Star
{{ repo.stargazers|length }} {% elif g.authenticated and g.repo_starred %} - + $(document).ready(function() { + $('.star_btn').click( function() { $('#star_project').submit()} ); + $('.unstar_btn').click( function() { $('#unstar_project').submit()} ); {% if g.repo_watch_levels %} var currentWatchStatusButton = $('#watch_{{ g.repo_watch_levels | join('_') }}_button .check-icon span'); {% else %}