diff options
author | Deepak Mittal <dpac.mittal2@gmail.com> | 2012-03-23 19:41:03 +0530 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-04-12 17:56:53 +0200 |
commit | bd262eaac0400be61e6396198b670d8a44bfa024 (patch) | |
tree | c22238233acd2d808ad1f634a9124f485f2a659b /apps | |
parent | 7e7de25710c4f8d4069a63d40ea7497bc93ff82c (diff) | |
download | nextcloud-server-bd262eaac0400be61e6396198b670d8a44bfa024.tar.gz nextcloud-server-bd262eaac0400be61e6396198b670d8a44bfa024.zip |
Fixed OC-261 by modifying js files in apps/media/
Diffstat (limited to 'apps')
-rw-r--r-- | apps/media/js/loader.js | 4 | ||||
-rw-r--r-- | apps/media/js/music.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/media/js/loader.js b/apps/media/js/loader.js index a832180d1e3..514965666fa 100644 --- a/apps/media/js/loader.js +++ b/apps/media/js/loader.js @@ -1,5 +1,5 @@ function musicTypeFromFile(file){ - var extention=file.substr(file.indexOf('.')+1); + var extention=file.substr(file.indexOf('.')+1).toLowerCase(); if(extention=='ogg'){ return 'oga'; } @@ -56,4 +56,4 @@ $(document).ready(function() { loadPlayer(); } } -});
\ No newline at end of file +}); diff --git a/apps/media/js/music.js b/apps/media/js/music.js index 1ffe4e10087..f93f0fded62 100644 --- a/apps/media/js/music.js +++ b/apps/media/js/music.js @@ -48,7 +48,7 @@ function getUrlVars(){ } function musicTypeFromFile(file){ - var extention=file.split('.').pop(); + var extention=file.split('.').pop().toLowerCase(); if(extention=='ogg'){ return 'oga'; } |