Fixed line ending issues on windows.
This commit is contained in:
parent
c2c4424ff8
commit
27244e0c9e
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue