Commit 001df157 authored by fred's avatar fred

fix click on .atom link to display the file content

parent c91a6ac1
......@@ -137,13 +137,13 @@ $(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 */
if (e.which == 2) {
window.open(href, '_blank');
return false;
}
if (e.which == 2) {
window.open(href, '_blank');
if (href.match('\.(pdf|odt|ods|doc|xls|docx|xlsx|rtf|atom)$')) {
/* open files */
window.location = href;
return false;
}
$(this).addClass('loading');
......
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