mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 01:44:13 +00:00
improved useradmin & seafadmin
This commit is contained in:
@@ -54,13 +54,11 @@
|
||||
|
||||
{% block extra_script %}
|
||||
<script type="text/javascript">
|
||||
if ($('.repo-delete-btn')) {
|
||||
$('.repo-delete-btn').each(function() {
|
||||
$(this).click(function() {
|
||||
location.href = $(this).attr('data');
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
|
@@ -32,7 +32,7 @@
|
||||
<td>{{ user.profile.ccnet_user_id }}</td>
|
||||
<td>
|
||||
{% for role in user.role_list %}
|
||||
{{ role }}<span class="small-action-link">(<a href="{{ SITE_ROOT }}useradmin/{{ user.profile.ccnet_user_id }}/role/remove/?role={{ role }}">删除</a>)</span>
|
||||
{{ role }} <button data="{{ SITE_ROOT }}useradmin/{{ user.profile.ccnet_user_id }}/role/remove/?role={{ role }}" class="role-delete-btn">删除</button><br />
|
||||
{% endfor %}
|
||||
</td>
|
||||
{% 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() {
|
||||
|
Reference in New Issue
Block a user