Fixed line ending issues on windows.
This commit is contained in:
parent
c2c4424ff8
commit
27244e0c9e
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ init:
|
||||||
|
|
||||||
$("#note_attachment").change(function(e){
|
$("#note_attachment").change(function(e){
|
||||||
var val = $('.input-file').val();
|
var val = $('.input-file').val();
|
||||||
var filename = val.substr(val.lastIndexOf("/"));
|
var filename = val.replace(/^.*[\\\/]/, '');
|
||||||
console.log(filename,val);
|
console.log(filename,val);
|
||||||
$(".file_name").text(filename);
|
$(".file_name").text(filename);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue