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
Boxiang Sun
gitlab-ce
Commits
c69931f0
Commit
c69931f0
authored
Jan 07, 2017
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use better approach to access hash
parent
a9e253b5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
app/assets/javascripts/build.js
app/assets/javascripts/build.js
+2
-5
No files found.
app/assets/javascripts/build.js
View file @
c69931f0
...
...
@@ -5,6 +5,7 @@
(
function
()
{
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
var
AUTO_SCROLL_OFFSET
=
75
;
var
DOWN_BUILD_TRACE
=
'
down-build-trace
'
;
this
.
Build
=
(
function
()
{
Build
.
interval
=
null
;
...
...
@@ -83,10 +84,6 @@
return
window
.
location
.
href
.
split
(
"
#
"
)[
0
];
};
Build
.
prototype
.
locationHash
=
function
()
{
return
window
.
location
.
href
.
split
(
"
#
"
)[
1
];
};
Build
.
prototype
.
getInitialBuildTrace
=
function
()
{
var
removeRefreshStatuses
=
[
'
success
'
,
'
failed
'
,
'
canceled
'
,
'
skipped
'
]
...
...
@@ -95,7 +92,7 @@
dataType
:
'
json
'
,
success
:
function
(
buildData
)
{
$
(
'
.js-build-output
'
).
html
(
buildData
.
trace_html
);
if
(
this
.
locationHash
()
===
'
down-build-trace
'
)
{
if
(
window
.
location
.
hash
.
substring
(
1
)
===
DOWN_BUILD_TRACE
)
{
$
(
"
html,body
"
).
scrollTop
(
this
.
$buildTrace
.
height
());
}
if
(
removeRefreshStatuses
.
indexOf
(
buildData
.
status
)
>=
0
)
{
...
...
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