提交 27244e0c 编写于 作者: S Steven Verbeek

Fixed line ending issues on windows.

上级 c2c4424f
...@@ -39,7 +39,7 @@ init: ...@@ -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);
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册