summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDeepak Mittal <dpac.mittal2@gmail.com>2012-03-23 19:41:03 +0530
committerRobin Appelman <icewind@owncloud.com>2012-04-12 17:56:53 +0200
commitbd262eaac0400be61e6396198b670d8a44bfa024 (patch)
treec22238233acd2d808ad1f634a9124f485f2a659b /apps
parent7e7de25710c4f8d4069a63d40ea7497bc93ff82c (diff)
downloadnextcloud-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.js4
-rw-r--r--apps/media/js/music.js2
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';
}