From 63e039e23522fffcdadd2234ca67b77c05a15226 Mon Sep 17 00:00:00 2001 From: mlorb Date: Tue, 6 Nov 2018 11:38:31 +0100 Subject: [PATCH] fix bug with new project button not working --- app/assets/javascripts/projects/index.js | 2 +- app/views/projects/index.html.erb | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/projects/index.js b/app/assets/javascripts/projects/index.js index d592226a8..22071e941 100644 --- a/app/assets/javascripts/projects/index.js +++ b/app/assets/javascripts/projects/index.js @@ -324,7 +324,7 @@ newProjectModal = $('#new-project-modal'); newProjectModalForm = newProjectModal.find('form'); newProjectModalBody = newProjectModal.find('.modal-body'); - newProjectBtn = $('#new-project-btn'); + newProjectBtn = $('.new-project-btn'); editProjectModal = $('#edit-project-modal'); editProjectModalTitle = editProjectModal.find('#edit-project-modal-label'); diff --git a/app/views/projects/index.html.erb b/app/views/projects/index.html.erb index 94118b517..7b615c4c2 100644 --- a/app/views/projects/index.html.erb +++ b/app/views/projects/index.html.erb @@ -35,8 +35,7 @@ <% if @teams.exists? && can_create_projects?(current_team) %>

<%=t 'projects.index.no_projects.title' %>


- + @@ -103,7 +102,7 @@ <% if @teams.exists? && can_create_projects?(current_team) %> - +