Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
66b0927b
Commit
66b0927b
authored
8 years ago
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move build artifacts javascripts into separate file
parent
e5232ccc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
13 deletions
+16
-13
app/assets/javascripts/build_artifacts.js.coffee
app/assets/javascripts/build_artifacts.js.coffee
+14
-0
app/assets/javascripts/dispatcher.js.coffee
app/assets/javascripts/dispatcher.js.coffee
+2
-0
app/views/projects/artifacts/browse.html.haml
app/views/projects/artifacts/browse.html.haml
+0
-13
No files found.
app/assets/javascripts/build_artifacts.js.coffee
0 → 100644
View file @
66b0927b
class
@
BuildArtifacts
constructor
:
()
->
@
disablePropagation
()
@
setupEntryClick
()
disablePropagation
:
->
$
(
'.top-block'
).
on
'click'
,
'.download'
,
(
e
)
->
e
.
stopPropagation
()
$
(
'.tree-holder'
).
on
'click'
,
'tr[data-link] a'
,
(
e
)
->
e
.
stopImmediatePropagation
()
setupEntryClick
:
->
$
(
'.tree-holder'
).
on
'click'
,
'tr[data-link]'
,
(
e
)
->
window
.
location
=
@
dataset
.
link
This diff is collapsed.
Click to expand it.
app/assets/javascripts/dispatcher.js.coffee
View file @
66b0927b
...
...
@@ -100,6 +100,8 @@ class Dispatcher
shortcut_handler
=
true
when
'projects:forks:new'
new
ProjectFork
()
when
'projects:artifacts:browse'
new
BuildArtifacts
()
when
'users:show'
new
User
()
new
Activities
()
...
...
This diff is collapsed.
Click to expand it.
app/views/projects/artifacts/browse.html.haml
View file @
66b0927b
...
...
@@ -20,16 +20,3 @@
-
if
@entry
.
empty?
.center
Empty
:javascript
$
(
'
.top-block
'
).
on
(
'
click
'
,
'
.download
'
,
function
(
e
)
{
e
.
stopPropagation
();
});
$
(
'
.tree-holder
'
).
on
(
'
click
'
,
'
tr[data-link] a
'
,
function
(
e
)
{
e
.
stopImmediatePropagation
();
});
$
(
'
.tree-holder
'
).
on
(
'
click
'
,
'
tr[data-link]
'
,
function
(
e
)
{
window
.
location
=
this
.
dataset
.
link
;
});
This diff is collapsed.
Click to expand it.
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