From 7dfde3a3c5c65b4f709f88a0be93a3b67755da64 Mon Sep 17 00:00:00 2001 From: ibuler Date: Wed, 23 Nov 2016 16:17:23 +0800 Subject: [PATCH] Update --- apps/users/templates/users/user_asset_permission.html | 2 +- apps/users/templates/users/user_group_asset_permission.html | 2 +- apps/users/templates/users/user_group_granted_asset.html | 2 +- apps/users/templates/users/user_list.html | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/users/templates/users/user_asset_permission.html b/apps/users/templates/users/user_asset_permission.html index 2704061b1..be05dd513 100644 --- a/apps/users/templates/users/user_asset_permission.html +++ b/apps/users/templates/users/user_asset_permission.html @@ -169,7 +169,7 @@ id: $this.attr('id'), user_id: {{ user.id }} }; - var the_url = "{% url 'perms:revoke-user-asset-permission' %}"; + var the_url = "{% url 'api-perms:revoke-user-asset-permission' %}"; var success = function () { $this.closest('tr').remove(); }; diff --git a/apps/users/templates/users/user_group_asset_permission.html b/apps/users/templates/users/user_group_asset_permission.html index 5ef8adeb8..7f33bad7f 100644 --- a/apps/users/templates/users/user_group_asset_permission.html +++ b/apps/users/templates/users/user_group_asset_permission.html @@ -165,7 +165,7 @@ id: $this.attr('id'), user_group_id: {{ user_group.id }} }; - var the_url = "{% url 'perms:revoke-user-group-asset-permission' %}"; + var the_url = "{% url 'api-perms:revoke-user-group-asset-permission' %}"; var success = function () { $this.closest('tr').remove(); }; diff --git a/apps/users/templates/users/user_group_granted_asset.html b/apps/users/templates/users/user_group_granted_asset.html index 293bb1511..3ddc898b7 100644 --- a/apps/users/templates/users/user_group_granted_asset.html +++ b/apps/users/templates/users/user_group_granted_asset.html @@ -133,7 +133,7 @@ } }} ], - ajax_url: '{% url "perms:api-user-group-assets" pk=user_group.id %}', + ajax_url: '{% url "api-perms:user-group-assets" pk=user_group.id %}', columns: [{data: function(){return ""}}, {data: "hostname" }, {data: "ip" }, {data: "port"}, {data: "system_users_join"}, {data: "is_active"}] }; diff --git a/apps/users/templates/users/user_list.html b/apps/users/templates/users/user_list.html index 5168bed8d..36401db06 100644 --- a/apps/users/templates/users/user_list.html +++ b/apps/users/templates/users/user_list.html @@ -93,7 +93,8 @@ $(document).ready(function(){ var rows = table.rows('.selected').data(); $.each(rows, function (index, obj) { users.push(obj.id) - }) + }); + console.log(users) }); }).on('click', '#btn_bulk_update', function(){