diff --git a/app/assets/javascripts/projects/index.js b/app/assets/javascripts/projects/index.js index 34df7ad5f..a01be4979 100644 --- a/app/assets/javascripts/projects/index.js +++ b/app/assets/javascripts/projects/index.js @@ -52,7 +52,7 @@ var ProjectsIndex = (function() { refreshCurrentView(); }) .on('ajax:error', newProjectFolderModal, function(e, data) { - let form = $(this).find('form#new_project_folder'); + let form = $(this).find('.new_project_folder'); form.renderFormErrors('project_folder', data.responseJSON); }); diff --git a/app/views/projects/index/modals/_edit_project_contents.html.erb b/app/views/projects/index/modals/_edit_project_contents.html.erb index 8bc7fb116..e27769e98 100644 --- a/app/views/projects/index/modals/_edit_project_contents.html.erb +++ b/app/views/projects/index/modals/_edit_project_contents.html.erb @@ -4,7 +4,7 @@ <%= t('projects.index.modal_edit_project.modal_title', project: @project.name) %> -<%= form_with model: @project, url: project_path(@project ,format: :json), method: :put, data: { remote: true } do |f| %> +<%= form_with model: @project, url: project_path(@project ,format: :json), method: :put, class: 'edit_project', data: { remote: true } do |f| %>