Verified Commit 48cbe65c authored by Alexandre Morin's avatar Alexandre Morin
Browse files

#7377 - Replace the point with a underscore

parent c51ad5fa
......@@ -71,8 +71,8 @@
} else {
filename = filename.substr(0, filename.lastIndexOf('.')) || filename;
}
window.open("/medona/message/" + messageId + "/attachment/" + $(this).data('id') + "/" + filename.replace(/ /g, "_"));
var regEx = new RegExp('[ .]', 'gi');
window.open("/medona/message/" + messageId + "/attachment/" + $(this).data('id') + "/" + filename.replace(regEx, "_"));
})
$('#messageModal').on('click','.showResource', function() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment