Fix opening protocol parser import modal [SCI-9452]

This commit is contained in:
Andrej 2023-10-04 17:08:56 +02:00
parent afb40fd762
commit 0a53b2e6bc

View file

@ -663,6 +663,10 @@ var ProtocolsIndex = (function() {
// Hack to hide "No file chosen" tooltip
fileInput.attr('title', window.webkitURL ? ' ' : '');
fileInput.on('click', (ev) => {
ev.target.value = null;
});
fileInput.on('change', function(ev) {
var importUrl = fileInput.attr('data-import-url');
var teamId = fileInput.attr('data-team-id');