Fix protocol import button [SCI-1931]

This commit is contained in:
Oleksii Kriuchykhin 2018-01-15 13:43:09 +01:00
parent ebd354e4d5
commit deabd39a98
2 changed files with 2 additions and 2 deletions

View file

@ -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");

View file

@ -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>&nbsp;<%= 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 %>