Started note attachment changes, and text changes

This commit is contained in:
Steven Verbeek 2012-03-24 13:57:01 -03:00
parent 597afb7ce2
commit c2c4424ff8
2 changed files with 3 additions and 2 deletions

View file

@ -38,8 +38,9 @@ init:
});
$("#note_attachment").change(function(e){
var val = $('input[type=file]').val();
var val = $('.input-file').val();
var filename = val.substr(val.lastIndexOf("/"));
console.log(filename,val);
$(".file_name").text(filename);
});

View file

@ -25,7 +25,7 @@
%h5 Attachment:
.clearfix
.attachments.breadcrumb
%span.file_name File name...
%div.file_name File name...
%button.file_upload.btn.primary Upload File
.input= f.file_field :attachment, :class => "input-file"
%span Any file less then 10 MB