Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
PUBLIC
/
surfer-okd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c667d125
authored
8 years ago
by
Johannes Zellner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not open a new tab for file downloads
1 parent
f66b47bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
frontend/js/app.js
frontend/js/app.js
View file @
c667d12
...
...
@@ -138,7 +138,7 @@ function open(entry) {
function
download
(
entry
)
{
if
(
entry
.
isDirectory
)
return
;
window
.
open
(
encode
(
'/api/files/'
+
sanitize
(
app
.
path
+
'/'
+
entry
.
filePath
))
+
'?access_token='
+
localStorage
.
accessToken
)
;
window
.
location
.
href
=
encode
(
'/api/files/'
+
sanitize
(
app
.
path
+
'/'
+
entry
.
filePath
))
+
'?access_token='
+
localStorage
.
accessToken
;
}
function
up
()
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
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 post a comment