]> git.0d.be Git - panikweb.git/commitdiff
open ogg/mp3 files as files, not as page fragments
authorFrédéric Péters <fpeters@0d.be>
Tue, 14 Aug 2018 13:21:54 +0000 (15:21 +0200)
committerFrédéric Péters <fpeters@0d.be>
Tue, 14 Aug 2018 13:21:54 +0000 (15:21 +0200)
panikweb_templates/static/js/specifics.js

index 7f31b810899d766ed456f4d8967e756a25078c13..c4c0dab8dab554047dfe51466fb30e94daa65189 100644 (file)
@@ -127,7 +127,7 @@ $(function() {
                                        window.open(href, '_blank');
                                        return false;
                                }
-                               if (href.match('\.(pdf|odt|ods|doc|xls|docx|xlsx|rtf|zip|rss|atom)$')) {
+                               if (href.match('\.(ogg|mp3|pdf|odt|ods|doc|xls|docx|xlsx|rtf|zip|rss|atom)$')) {
                                        /* open files */
                                        window.location = href;
                                        return false;