Merge pull request #1359 from mlorb/ml-sci-2843

Fix bug with new project button not working [SCI-2843]
This commit is contained in:
mlorb 2018-11-07 11:02:47 +01:00 committed by GitHub
commit 039faf2964
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View file

@ -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');

View file

@ -35,8 +35,7 @@
<% if @teams.exists? && can_create_projects?(current_team) %>
<h2><strong><%=t 'projects.index.no_projects.title' %><strong></h2>
<br />
<a class="btn btn-primary btn-lg"
id="new-project-btn">
<a class="btn btn-primary btn-lg new-project-btn">
<span class="fas fa-plus"></span>
<span class="hidden-xs"><%= t('projects.index.no_projects.create_new_button') %></span>
</a>
@ -103,7 +102,7 @@
<% if @teams.exists? && can_create_projects?(current_team) %>
<!-- new project button -->
<a class="btn btn-primary" id="new-project-btn">
<a class="btn btn-primary new-project-btn">
<span class="fas fa-plus" aria-hidden="true"></span>
<span class="hidden-xs"><%=t "projects.index.new" %></span>
</a>