]> git.0d.be Git - panikweb.git/commitdiff
fix click on .rss link to display the file content
authorFrédéric Péters <fpeters@0d.be>
Tue, 12 Jul 2016 18:32:21 +0000 (20:32 +0200)
committerFrédéric Péters <fpeters@0d.be>
Tue, 12 Jul 2016 18:32:21 +0000 (20:32 +0200)
panikweb_templates/static/js/specifics.js

index 382b44742a2f9c8342061db55ee79f0922262b21..25c5ebc5811f9bfa1ecf098bc3ec411de65d6187 100644 (file)
@@ -141,7 +141,7 @@ $(function() {
                                        window.open(href, '_blank');
                                        return false;
                                }
-                               if (href.match('\.(pdf|odt|ods|doc|xls|docx|xlsx|rtf|atom)$')) {
+                               if (href.match('\.(pdf|odt|ods|doc|xls|docx|xlsx|rtf|rss|atom)$')) {
                                        /* open files */
                                        window.location = href;
                                        return false;