diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-08-28 15:39:17 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-08-28 15:39:17 -0400 |
commit | be4cb5536846049ffdc1093adf6649cbe13903fa (patch) | |
tree | 91972cfba84d6149b1e9a484514104e461cc56a8 /files | |
parent | affc879cde972aca84688f47bca15e66ea5f7505 (diff) | |
download | nextcloud-server-be4cb5536846049ffdc1093adf6649cbe13903fa.tar.gz nextcloud-server-be4cb5536846049ffdc1093adf6649cbe13903fa.zip |
Fix newly uploaded files names being cut off if multiple '.'
Diffstat (limited to 'files')
-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; |