Fixed line ending issues on windows.

This commit is contained in:
Steven Verbeek 2012-03-24 14:01:38 -03:00
parent c2c4424ff8
commit 27244e0c9e

View file

@ -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);
});