Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Simon Daron
panikweb
Commits
4b437163
Commit
4b437163
authored
Dec 28, 2013
by
fred
Browse files
do not try loading files via ajax
parent
e1a1a516
Changes
1
Hide whitespace changes
Inline
Side-by-side
panikweb_templates/static/js/specifics.js
View file @
4b437163
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment