mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-20 22:03:03 +08:00
Fix error on experiments page after role update [SCI-6245] (#3644)
Co-authored-by: Anton <anton@scinote.net>
This commit is contained in:
parent
083efd77fd
commit
3862e780ee
3 changed files with 3 additions and 3 deletions
|
@ -172,7 +172,7 @@ var ProjectsIndex = (function() {
|
|||
|
||||
function initManageUsersModal() {
|
||||
// Reload users tab HTML element when modal is closed
|
||||
$(document).on('ajax:success', '#user_assignments_modal form', function() {
|
||||
$(document).on('ajax:success', '#user_assignments_modal form[data-object-type=project]', function() {
|
||||
refreshCurrentView();
|
||||
});
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<%= t '.title', resource_name: resource.name %>
|
||||
</h4>
|
||||
</div>
|
||||
<%= form_with(model: form_object, url: create_path, method: :post, remote: true, html: { id: 'new-user-assignment-to-project-form', data: { action: 'replace-form', target: '#user_assignments_modal' } }) do |f| %>
|
||||
<%= form_with(model: form_object, url: create_path, method: :post, remote: true, html: { id: 'new-user-assignment-to-project-form', data: { action: 'replace-form', target: '#user_assignments_modal', object_type: resource.class.to_s.downcase} }) do |f| %>
|
||||
<div class="modal-body">
|
||||
<div class="sci-input-container left-icon">
|
||||
<%= text_field_tag :search_users, '', placeholder: t('.find_people_html'), class: 'sci-input-field', data: { action: 'filter-list', target: 'new-user-assignment-to-project-form' } %>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
item_id = dom_id(user, :project_member)
|
||||
%>
|
||||
|
||||
<%= form_with(model: project_member, url: update_path, method: :put, remote: true, html: { class: 'row member-item', id: item_id, data: { action: 'replace-form autosave-form' } }) do |f| %>
|
||||
<%= form_with(model: project_member, url: update_path, method: :put, remote: true, html: { class: 'row member-item', id: item_id, data: { action: 'replace-form autosave-form', object_type: :project } }) do |f| %>
|
||||
<%= f.hidden_field :user_id, value: f.object.user.id %>
|
||||
<div class="col-xs-2">
|
||||
<span class="global-avatar-container">
|
||||
|
|
Loading…
Reference in a new issue