We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 328d908 commit b616f66Copy full SHA for b616f66
web_src/js/features/repo-graph.js
@@ -1,4 +1,5 @@
1
import $ from 'jquery';
2
+import {GET} from '../modules/fetch.js';
3
4
export function initRepoGraphGit() {
5
const graphContainer = document.getElementById('git-graph-container');
@@ -60,7 +61,9 @@ export function initRepoGraphGit() {
60
61
$('#rev-container').addClass('gt-hidden');
62
$('#loading-indicator').removeClass('gt-hidden');
63
(async () => {
- const div = $(await $.ajax(String(ajaxUrl)));
64
+ const response = await GET(String(ajaxUrl));
65
+ const html = await response.text();
66
+ const div = $(html);
67
$('#pagination').html(div.find('#pagination').html());
68
$('#rel-container').html(div.find('#rel-container').html());
69
$('#rev-container').html(div.find('#rev-container').html());
0 commit comments