mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 14:45:56 +08:00
Merge pull request #6332 from rekonder/aj_SCI_9275
Fix protocol parser import button closing [SCI-9275]
This commit is contained in:
commit
4aa43395e8
|
@ -47,6 +47,7 @@
|
|||
},
|
||||
methods: {
|
||||
open() {
|
||||
$('.protocol-import-dropdown-button').dropdown('toggle');
|
||||
$(this.$refs.modal).modal('show');
|
||||
},
|
||||
close() {
|
||||
|
@ -66,7 +67,6 @@
|
|||
confirm() {
|
||||
let formData = new FormData();
|
||||
Array.from(this.files).forEach(file => formData.append('files[]', file, file.name));
|
||||
$('.protocol-import-dropdown').dropdown('toggle');
|
||||
|
||||
$.post({ url: this.importUrl, data: formData, processData: false, contentType: false }, (data) => {
|
||||
this.state = 'in_progress';
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
</button>
|
||||
|
||||
<div id="protocol-import-group" class="relative sci-btn-group only-active" role="group">
|
||||
<button class="btn btn-light" title="<%= t("protocols.index.import_tooltip") %>"
|
||||
<button class="btn btn-light protocol-import-dropdown-button" title="<%= t("protocols.index.import_tooltip") %>"
|
||||
data-toggle="dropdown"
|
||||
aria-haspopup="true"
|
||||
aria-expanded="false">
|
||||
|
|
Loading…
Reference in a new issue