mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-04 03:36:44 +08:00
fix bug with new project button not working
This commit is contained in:
parent
2b4ef619c2
commit
63e039e235
2 changed files with 3 additions and 4 deletions
|
@ -324,7 +324,7 @@
|
||||||
newProjectModal = $('#new-project-modal');
|
newProjectModal = $('#new-project-modal');
|
||||||
newProjectModalForm = newProjectModal.find('form');
|
newProjectModalForm = newProjectModal.find('form');
|
||||||
newProjectModalBody = newProjectModal.find('.modal-body');
|
newProjectModalBody = newProjectModal.find('.modal-body');
|
||||||
newProjectBtn = $('#new-project-btn');
|
newProjectBtn = $('.new-project-btn');
|
||||||
|
|
||||||
editProjectModal = $('#edit-project-modal');
|
editProjectModal = $('#edit-project-modal');
|
||||||
editProjectModalTitle = editProjectModal.find('#edit-project-modal-label');
|
editProjectModalTitle = editProjectModal.find('#edit-project-modal-label');
|
||||||
|
|
|
@ -35,8 +35,7 @@
|
||||||
<% if @teams.exists? && can_create_projects?(current_team) %>
|
<% if @teams.exists? && can_create_projects?(current_team) %>
|
||||||
<h2><strong><%=t 'projects.index.no_projects.title' %><strong></h2>
|
<h2><strong><%=t 'projects.index.no_projects.title' %><strong></h2>
|
||||||
<br />
|
<br />
|
||||||
<a class="btn btn-primary btn-lg"
|
<a class="btn btn-primary btn-lg new-project-btn">
|
||||||
id="new-project-btn">
|
|
||||||
<span class="fas fa-plus"></span>
|
<span class="fas fa-plus"></span>
|
||||||
<span class="hidden-xs"><%= t('projects.index.no_projects.create_new_button') %></span>
|
<span class="hidden-xs"><%= t('projects.index.no_projects.create_new_button') %></span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -103,7 +102,7 @@
|
||||||
|
|
||||||
<% if @teams.exists? && can_create_projects?(current_team) %>
|
<% if @teams.exists? && can_create_projects?(current_team) %>
|
||||||
<!-- new project button -->
|
<!-- 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="fas fa-plus" aria-hidden="true"></span>
|
||||||
<span class="hidden-xs"><%=t "projects.index.new" %></span>
|
<span class="hidden-xs"><%=t "projects.index.new" %></span>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue