1
0
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:
llj
2012-03-23 16:24:25 +08:00
parent 6555e70ded
commit b812c6b5a8
2 changed files with 10 additions and 7 deletions

View File

@@ -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');
});
$('.repo-delete-btn').each(function() {
$(this).click(function() {
location.href = $(this).attr('data');
});
}
});
</script>
{% endblock %}

View File

@@ -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() {