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
03742e29
Commit
03742e29
authored
Jun 08, 2017
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix conflict in app/assets/javascripts/blob/viewer/index.js
parent
33c9cf20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
40 deletions
+1
-40
index.js
app/assets/javascripts/blob/viewer/index.js
+1
-40
No files found.
app/assets/javascripts/blob/viewer/index.js
View file @
03742e29
...
...
@@ -78,7 +78,7 @@ export default class BlobViewer {
.
fail
(()
=>
new
Flash
(
'Error loading source view'
))
.
done
((
data
)
=>
{
viewer
.
innerHTML
=
data
.
html
;
$
(
viewer
).
syntaxHighlight
();
$
(
viewer
).
renderGFM
();
viewer
.
setAttribute
(
'data-loaded'
,
'true'
);
...
...
@@ -116,45 +116,6 @@ export default class BlobViewer {
this
.
toggleCopyButtonState
();
<<<<<<<
HEAD
this
.
loadViewer
(
newViewer
);
=======
BlobViewer
.
loadViewer
(
newViewer
)
.
then
((
viewer
)
=>
{
$
(
viewer
).
renderGFM
();
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
);
});
});
>>>>>>>
83550
c0
...
Merge
branch
'33048-markdown-rendering-of-md-files-has-ceased-to-display-latex-equations'
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