Commit 27244e0c authored by Steven Verbeek's avatar Steven Verbeek

Fixed line ending issues on windows.

parent c2c4424f
......@@ -39,7 +39,7 @@ init:
$("#note_attachment").change(function(e){
var val = $('.input-file').val();
var filename = val.substr(val.lastIndexOf("/"));
var filename = val.replace(/^.*[\\\/]/, '');
console.log(filename,val);
$(".file_name").text(filename);
});
......
Markdown is supported
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