]> git.0d.be Git - panikweb.git/commitdiff
misc: let zip files be downloaded
authorFrédéric Péters <fpeters@0d.be>
Wed, 13 Jun 2018 07:02:52 +0000 (09:02 +0200)
committerFrédéric Péters <fpeters@0d.be>
Wed, 13 Jun 2018 07:02:52 +0000 (09:02 +0200)
panikweb_templates/static/js/specifics.js

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