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
Léo-Paul Géneau
gitlab-ce
Commits
c254d059
Commit
c254d059
authored
Jan 12, 2017
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use string constant variable for `#down-build-trace`
parent
c69931f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/assets/javascripts/build.js
app/assets/javascripts/build.js
+4
-4
No files found.
app/assets/javascripts/build.js
View file @
c254d059
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
(
function
()
{
(
function
()
{
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
var
AUTO_SCROLL_OFFSET
=
75
;
var
AUTO_SCROLL_OFFSET
=
75
;
var
DOWN_BUILD_TRACE
=
'
down-build-trace
'
;
var
DOWN_BUILD_TRACE
=
'
#
down-build-trace
'
;
this
.
Build
=
(
function
()
{
this
.
Build
=
(
function
()
{
Build
.
interval
=
null
;
Build
.
interval
=
null
;
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
this
.
$autoScrollStatus
=
$
(
'
#autoscroll-status
'
);
this
.
$autoScrollStatus
=
$
(
'
#autoscroll-status
'
);
this
.
$autoScrollStatusText
=
this
.
$autoScrollStatus
.
find
(
'
.status-text
'
);
this
.
$autoScrollStatusText
=
this
.
$autoScrollStatus
.
find
(
'
.status-text
'
);
this
.
$upBuildTrace
=
$
(
'
#up-build-trace
'
);
this
.
$upBuildTrace
=
$
(
'
#up-build-trace
'
);
this
.
$downBuildTrace
=
$
(
'
#down-build-trace
'
);
this
.
$downBuildTrace
=
$
(
DOWN_BUILD_TRACE
);
this
.
$scrollTopBtn
=
$
(
'
#scroll-top
'
);
this
.
$scrollTopBtn
=
$
(
'
#scroll-top
'
);
this
.
$scrollBottomBtn
=
$
(
'
#scroll-bottom
'
);
this
.
$scrollBottomBtn
=
$
(
'
#scroll-bottom
'
);
this
.
$buildRefreshAnimation
=
$
(
'
.js-build-refresh
'
);
this
.
$buildRefreshAnimation
=
$
(
'
.js-build-refresh
'
);
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
dataType
:
'
json
'
,
dataType
:
'
json
'
,
success
:
function
(
buildData
)
{
success
:
function
(
buildData
)
{
$
(
'
.js-build-output
'
).
html
(
buildData
.
trace_html
);
$
(
'
.js-build-output
'
).
html
(
buildData
.
trace_html
);
if
(
window
.
location
.
hash
.
substring
(
1
)
===
DOWN_BUILD_TRACE
)
{
if
(
window
.
location
.
hash
===
DOWN_BUILD_TRACE
)
{
$
(
"
html,body
"
).
scrollTop
(
this
.
$buildTrace
.
height
());
$
(
"
html,body
"
).
scrollTop
(
this
.
$buildTrace
.
height
());
}
}
if
(
removeRefreshStatuses
.
indexOf
(
buildData
.
status
)
>=
0
)
{
if
(
removeRefreshStatuses
.
indexOf
(
buildData
.
status
)
>=
0
)
{
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
}
else
if
(
log
.
status
!==
_this
.
buildStatus
)
{
}
else
if
(
log
.
status
!==
_this
.
buildStatus
)
{
pageUrl
=
_this
.
pageUrl
;
pageUrl
=
_this
.
pageUrl
;
if
(
_this
.
$autoScrollStatus
.
data
(
'
state
'
)
===
'
enabled
'
)
{
if
(
_this
.
$autoScrollStatus
.
data
(
'
state
'
)
===
'
enabled
'
)
{
pageUrl
+=
'
#down-build-trace
'
;
pageUrl
+=
DOWN_BUILD_TRACE
;
}
}
return
Turbolinks
.
visit
(
pageUrl
);
return
Turbolinks
.
visit
(
pageUrl
);
...
...
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