From b812c6b5a8b13ec5811e8b7ff411d154a8deff39 Mon Sep 17 00:00:00 2001 From: llj Date: Fri, 23 Mar 2012 16:24:25 +0800 Subject: [PATCH] improved useradmin & seafadmin --- templates/repos.html | 10 ++++------ templates/useradmin.html | 7 ++++++- 2 files changed, 10 insertions(+), 7 deletions(-) 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() {