Commit 4b437163 authored by fred's avatar fred

do not try loading files via ajax

parent e1a1a516
......@@ -124,6 +124,11 @@ $(function() {
$(this).unbind('click');
$(this).bind('click',function(e){
var href = $(this).attr("href");
if (href.match('\.(pdf|odt|ods|doc|xls|docx|xlsx|rtf)$')) {
/* open files */
window.open(href, '_blank');
return false;
}
if (e.which == 2) {
window.open(href, '_blank');
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment