mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-25 01:03:18 +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
|
// Hack to hide "No file chosen" tooltip
|
||||||
fileInput.attr("title", window.webkitURL ? " " : "");
|
fileInput.attr("title", window.URL ? " " : "");
|
||||||
|
|
||||||
fileInput.on("change", function(ev) {
|
fileInput.on("change", function(ev) {
|
||||||
var importUrl = fileInput.attr("data-import-url");
|
var importUrl = fileInput.attr("data-import-url");
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<li>
|
<li>
|
||||||
<a class="btn-open-file" href="#" data-action="load-from-file" data-import-url="<%= load_from_file_protocol_path(@protocol, format: :json) %>">
|
<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") %>
|
<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>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|
Loading…
Reference in a new issue