mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
init project
This commit is contained in:
6
app/views/admins/laboratory_users/create.js.erb
Normal file
6
app/views/admins/laboratory_users/create.js.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
$('.modal.admin-add-laboratory-user-modal').modal('hide');
|
||||
$.notify({ message: '操作成功' });
|
||||
|
||||
var index = $(".laboratory-item-<%= current_laboratory.id %>").children(":first").html();
|
||||
$('.laboratory-list-table .laboratory-item-<%= current_laboratory.id %>').html("<%= j(render partial: 'admins/laboratories/shared/laboratory_item', locals: {laboratory: current_laboratory, index: 1}) %>");
|
||||
$(".laboratory-item-<%= current_laboratory.id %>").children(":first").html(index);
|
||||
2
app/views/admins/laboratory_users/destroy.js.erb
Normal file
2
app/views/admins/laboratory_users/destroy.js.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
$.notify({ message: '操作成功' });
|
||||
$('.laboratory-list-container .laboratory-item-<%= current_laboratory.id %> .laboratory-user-item-<%= @laboratory_user.user_id %>').remove();
|
||||
Reference in New Issue
Block a user