[vlc-commits] Web: support correctly all cases of extensions
Jean-Baptiste Kempf
git at videolan.org
Sun Apr 1 20:03:45 CEST 2012
vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Apr 1 20:00:49 2012 +0200| [0c17610b85869e9d10b081cd082ff348e78eeb08] | committer: Jean-Baptiste Kempf
Web: support correctly all cases of extensions
Ref #6544
(cherry picked from commit 69030f1153a62f67a21e0d0834691a4e973e8a63)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=0c17610b85869e9d10b081cd082ff348e78eeb08
---
share/lua/http/js/controlers.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/share/lua/http/js/controlers.js b/share/lua/http/js/controlers.js
index e9a6067..2425ffe 100644
--- a/share/lua/http/js/controlers.js
+++ b/share/lua/http/js/controlers.js
@@ -166,7 +166,7 @@ function browse(dir) {
var tgt = browse_target.indexOf('__') == -1 ? browse_target : browse_target.substr(0, browse_target.indexOf('__'));
$('#browse_elements').empty();
$('element', data).each(function () {
- var ext = $(this).attr('name').substr($(this).attr('name').lastIndexOf('.') + 1);
+ var ext = $(this).attr('name').substr($(this).attr('name').lastIndexOf('.') + 1).toLowerCase();
if ($(this).attr('type') == 'dir' || $.inArray(ext, video_types) != -1 || $.inArray(ext, audio_types) != -1) {
$('#browse_elements').append(createElementLi($(this).attr('name'), $(this).attr('type'), $(this).attr('uri'), ext));
}
More information about the vlc-commits
mailing list