BigW Consortium Gitlab

Commit 03742e29 by Sean McGivern

Fix conflict in app/assets/javascripts/blob/viewer/index.js

parent 33c9cf20
......@@ -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);
});
});
>>>>>>> 83550c0... Merge branch '33048-markdown-rendering-of-md-files-has-ceased-to-display-latex-equations' into 'master'
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment