mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-24 08:43:13 +08:00
Fix protocol import button [SCI-1931]
This commit is contained in:
parent
ebd354e4d5
commit
deabd39a98
2 changed files with 2 additions and 2 deletions
|
@ -474,7 +474,7 @@ function initImport() {
|
|||
});
|
||||
|
||||
// Hack to hide "No file chosen" tooltip
|
||||
fileInput.attr("title", window.webkitURL ? " " : "");
|
||||
fileInput.attr("title", window.URL ? " " : "");
|
||||
|
||||
fileInput.on("change", function(ev) {
|
||||
var importUrl = fileInput.attr("data-import-url");
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<li>
|
||||
<a class="btn-open-file" href="#" data-action="load-from-file" data-import-url="<%= load_from_file_protocol_path(@protocol, format: :json) %>">
|
||||
<span class="glyphicon glyphicon-file"></span> <%= t("my_modules.protocols.buttons.load_protocol_from_file") %>
|
||||
<input type="file" value="" accept=".eln">
|
||||
<input type="file" value="" accept=".eln" data-turbolinks="false">
|
||||
</a>
|
||||
</li>
|
||||
<% else %>
|
||||
|
|
Loading…
Reference in a new issue