mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-30 11:41:19 +08:00
Merge pull request #1359 from mlorb/ml-sci-2843
Fix bug with new project button not working [SCI-2843]
This commit is contained in:
commit
039faf2964
2 changed files with 3 additions and 4 deletions
|
@ -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');
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue