Fix newly uploaded files names being cut off if multiple '.'

This commit is contained in:
Michael Gapczynski 2011-08-28 15:39:17 -04:00
parent affc879cde
commit be4cb55368
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ FileList={
var img=(loading)?OC.imagePath('core', 'loading.gif'):OC.imagePath('core', 'filetypes/file');
var html='<tr data-file="'+name+'" data-type="file" data-size="'+size+'">';
if(name.indexOf('.')!=-1){
var basename=name.substr(0,name.indexOf('.'));
var basename=name.substr(0,name.lastIndexOf('.'));
var extention=name.substr(name.lastIndexOf('.'));
}else{
var basename=name;