summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/details/files.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/js/lib/views/details/files.js')
-rw-r--r--public/assets/js/lib/views/details/files.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/assets/js/lib/views/details/files.js b/public/assets/js/lib/views/details/files.js
index cdefc1f..3cfd1c9 100644
--- a/public/assets/js/lib/views/details/files.js
+++ b/public/assets/js/lib/views/details/files.js
@@ -26,7 +26,7 @@ var FilesView = FormView.extend({
// return
}
total += file.size
- has_music = has_music || file.filename.match(/(mp3|wav|ogg|opus)$/i)
+ has_music = has_music || file.filename.match(/(mp3|wav|ogg|opus|flac)$/i)
}.bind(this))
this.total = total
@@ -175,7 +175,7 @@ var FilesView = FormView.extend({
pick: function(e){
if (e.ctrlKey || e.altKey || e.metaKey || e.shiftKey) return
- if (! e.target.href || ! e.target.href.match(/(mp3|wav|ogg|opus)$/i)) return
+ if (! e.target.href || ! e.target.href.match(/(mp3|wav|ogg|opus|flac)$/i)) return
e.preventDefault()
audio.play( e.target.dataset.index ) // index set in audio.js
},