From 521047706a4131b8646eb5b25d27d2134aebdea1 Mon Sep 17 00:00:00 2001 From: Julen Landa Alustiza Date: Aug 28 2019 10:31:02 +0000 Subject: themes/srcfpo: fix some csp errors --- 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 %}