mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 10:26:17 +00:00
improved useradmin & seafadmin
This commit is contained in:
@@ -54,13 +54,11 @@
|
|||||||
|
|
||||||
{% block extra_script %}
|
{% block extra_script %}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
if ($('.repo-delete-btn')) {
|
$('.repo-delete-btn').each(function() {
|
||||||
$('.repo-delete-btn').each(function() {
|
$(this).click(function() {
|
||||||
$(this).click(function() {
|
location.href = $(this).attr('data');
|
||||||
location.href = $(this).attr('data');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
});
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
@@ -32,7 +32,7 @@
|
|||||||
<td>{{ user.profile.ccnet_user_id }}</td>
|
<td>{{ user.profile.ccnet_user_id }}</td>
|
||||||
<td>
|
<td>
|
||||||
{% for role in user.role_list %}
|
{% 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 %}
|
{% endfor %}
|
||||||
</td>
|
</td>
|
||||||
{% else %}
|
{% else %}
|
||||||
@@ -74,6 +74,11 @@
|
|||||||
location.href = $(this).attr('data');
|
location.href = $(this).attr('data');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
$('.role-delete-btn').each(function(){
|
||||||
|
$(this).click(function(){
|
||||||
|
location.href = $(this).attr('data');
|
||||||
|
});
|
||||||
|
});
|
||||||
$(function() {
|
$(function() {
|
||||||
|
|
||||||
$(".add-role-btn").each(function() {
|
$(".add-role-btn").each(function() {
|
||||||
|
Reference in New Issue
Block a user