mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-13 08:29:22 +08:00
Moved export form to proper place in the code. [SCI-1275]
This commit is contained in:
parent
f46d8f6970
commit
29b721365a
3 changed files with 17 additions and 22 deletions
app
assets/javascripts/repositories
views/repositories
|
@ -712,8 +712,7 @@ function updateButtons() {
|
|||
$('#exportRepositoriesButton').removeClass('disabled');
|
||||
$('#exportRepositoriesButton').prop('disabled', false);
|
||||
$('#exportRepositoriesButton').on('click', function() {
|
||||
$('#exportRepositoryModal')
|
||||
.modal('show')
|
||||
$('#exportRepositoryModal').modal('show');
|
||||
});
|
||||
$('#export-repositories').on('click', function() {
|
||||
animateSpinner(null, true);
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
tabindex="-1"
|
||||
role="dialog"
|
||||
aria-labelledby="modal-export-repository-label">
|
||||
<%= bootstrap_form_tag(url: export_repository_team_path(repository),
|
||||
html: { id: 'form-export' }) do |f| %>
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
|
@ -18,4 +20,5 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
|
|
@ -5,12 +5,6 @@
|
|||
|
||||
<div id="alert-container"></div>
|
||||
|
||||
<% if can_view_repository(repository) %>
|
||||
<%= bootstrap_form_tag(url: export_repository_team_path(repository),
|
||||
html: { id: 'form-export', class: 'hidden' }) do |f| %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
<div id="repository-toolbar">
|
||||
|
||||
<% if can_create_repository_records(repository) %>
|
||||
|
@ -88,4 +82,3 @@
|
|||
repository_index_link: repository_table_index_path(repository)
|
||||
}
|
||||
%>
|
||||
|
||||
|
|
Loading…
Reference in a new issue