mirror of https://github.com/jumpserver/jumpserver
Update
parent
180af7e0bd
commit
7dfde3a3c5
|
@ -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();
|
||||
};
|
||||
|
|
|
@ -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();
|
||||
};
|
||||
|
|
|
@ -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"}]
|
||||
};
|
||||
|
|
|
@ -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(){
|
||||
|
|
Loading…
Reference in New Issue