diff options
Diffstat (limited to 'files/js/filelist.js')
-rw-r--r-- | files/js/filelist.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/js/filelist.js b/files/js/filelist.js index a5b8854e929..ae9e7977c95 100644 --- a/files/js/filelist.js +++ b/files/js/filelist.js @@ -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; |