diff --git a/templates/repos.html b/templates/repos.html index 02455f3ba2..7e30646fc3 100644 --- a/templates/repos.html +++ b/templates/repos.html @@ -54,13 +54,11 @@ {% block extra_script %} {% endblock %} diff --git a/templates/useradmin.html b/templates/useradmin.html index 199dd2e4e7..0cc995ea11 100644 --- a/templates/useradmin.html +++ b/templates/useradmin.html @@ -32,7 +32,7 @@ {{ user.profile.ccnet_user_id }} {% for role in user.role_list %} - {{ role }}(删除) + {{ role }}
{% endfor %} {% else %} @@ -74,6 +74,11 @@ location.href = $(this).attr('data'); }); }); + $('.role-delete-btn').each(function(){ + $(this).click(function(){ + location.href = $(this).attr('data'); + }); + }); $(function() { $(".add-role-btn").each(function() {