Skip to content
Snippets Groups Projects
Commit bd211a18 authored by Anusha Ranganathan's avatar Anusha Ranganathan
Browse files

Merge branch 'bug_fix/346-safari-does-not-properly-display-the-files-tab' into 'develop'

Fixes for files tab in form that does not properly display in safari

Closes FDM/rdm-system/antleaf-projectmanagement#346

See merge request !304
parents 36860412 6d4f57fe
Branches
Tags
1 merge request!304Fixes for files tab in form that does not properly display in safari
Pipeline #14549 passed
......@@ -154,6 +154,10 @@
s3ServerError: '<%= t("rdms.errors.uploads.s3_server_error") %>',
fileNotAllowed: '<%= t("rdms.errors.uploads.file_not_allowed") %>'
}});
}).on('fileuploadsend', function (e, data) {
if (!$('.template-upload').hasClass('in')) {
$('.template-upload').addClass('in');
}
}).on('fileuploadfail', function (e, data) {
file = data.files[0]
dfd = $.Deferred();
......@@ -166,7 +170,12 @@
}
dfd.rejectWith(this, [data]);
$('#with_files_submit').attr('disabled', 'disabled')
return dfd.promise();
dfd.promise();
setTimeout(function() {
if (!$('.template-download').hasClass('in')) {
$('.template-download').addClass('in');
}
}, 500);
});
</script>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment