Commit a805d313 authored by Steven Verbeek's avatar Steven Verbeek

Fixed line ending issues on windows.

parent 27244e0c
......@@ -40,7 +40,6 @@ init:
$("#note_attachment").change(function(e){
var val = $('.input-file').val();
var filename = val.replace(/^.*[\\\/]/, '');
console.log(filename,val);
$(".file_name").text(filename);
});
......
......@@ -1117,6 +1117,20 @@ p.time {
.file_name {
line-height:30px;
width:240px;
height:28px;
overflow:hidden;
}
}
// Fix issue with notes & lists creating a bunch of bottom borders.
li.note {
.note-title {
li {
border-bottom:none !important;
}
.file {
padding-left:20px;
background:url("icon-attachment.png") no-repeat left center;
}
}
}
\ No newline at end of file
......@@ -12,6 +12,6 @@
= markdown(note.note)
- if note.attachment.url
.right
%span.file
= link_to note.attachment_identifier, note.attachment.url, :target => "_blank"
%div.file
= link_to note.attachment_identifier, note.attachment.url, :target => "_blank"
.clear
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