Merge pull request #6359 from rekonder/aj_SCI_9452

Fix opening protocol parser import modal [SCI-9452]
This commit is contained in:
Alex Kriuchykhin 2023-10-05 15:28:18 +02:00 committed by GitHub
commit b73f88f91c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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