BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
16c37592
Commit
16c37592
authored
May 19, 2017
by
Tim Zallmann
Committed by
Douwe Maan
May 19, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed merging conflict on the blob load viewer
parent
46199016
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
39 deletions
+1
-39
index.js
app/assets/javascripts/blob/viewer/index.js
+1
-39
No files found.
app/assets/javascripts/blob/viewer/index.js
View file @
16c37592
...
...
@@ -83,6 +83,7 @@ export default class BlobViewer {
viewer
.
setAttribute
(
'data-loaded'
,
'true'
);
this
.
$fileHolder
.
trigger
(
'highlight:line'
);
gl
.
utils
.
handleLocationHash
();
this
.
toggleCopyButtonState
();
});
...
...
@@ -115,45 +116,6 @@ export default class BlobViewer {
this
.
toggleCopyButtonState
();
<<<<<<<
HEAD
this
.
loadViewer
(
newViewer
);
=======
BlobViewer
.
loadViewer
(
newViewer
)
.
then
((
viewer
)
=>
{
$
(
viewer
).
syntaxHighlight
();
this
.
$fileHolder
.
trigger
(
'highlight:line'
);
gl
.
utils
.
handleLocationHash
();
this
.
toggleCopyButtonState
();
})
.
catch
(()
=>
new
Flash
(
'Error loading viewer'
));
}
static
loadViewer
(
viewerParam
)
{
const
viewer
=
viewerParam
;
const
url
=
viewer
.
getAttribute
(
'data-url'
);
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
!
url
||
viewer
.
getAttribute
(
'data-loaded'
)
||
viewer
.
getAttribute
(
'data-loading'
))
{
resolve
(
viewer
);
return
;
}
viewer
.
setAttribute
(
'data-loading'
,
'true'
);
$
.
ajax
({
url
,
dataType
:
'JSON'
,
})
.
fail
(
reject
)
.
done
((
data
)
=>
{
viewer
.
innerHTML
=
data
.
html
;
viewer
.
setAttribute
(
'data-loaded'
,
'true'
);
resolve
(
viewer
);
});
});
>>>>>>>
b957df9
...
Merge
branch
'dm-scroll-to-blob-user-content'
into
'master'
}
}
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