Skip to content
Snippets Groups Projects
Verified Commit 0242458c authored by Alexandre Morin's avatar Alexandre Morin
Browse files

#7377 - Replace the point with a underscore

parent 5c4e3651
No related branches found
No related tags found
No related merge requests found
......@@ -53,7 +53,8 @@
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() {
......
......@@ -51,8 +51,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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment