- gitlist.git
- src
- browser
- js
- breadcrumb.js
This file ( 922B ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
$(function () {
const $gitActions = $('#p3x-gitlist-breadcrumb-git');
if ($gitActions.length === 0) {
return;
}
const $gitActionFetch = $('#p3x-gitlist-breadcrumb-git-fetch')
$gitActionFetch.on('click', async () => {
const url = `${window.gitlist.basepath}/${window.gitlist.repo}/git-helper/${window.gitlist.branch}/fetch-origin`
try {
const request = $.ajax({
url: url,
type: 'POST',
})
const response = await request;
const json = JSON.parse(response)
if (json.error === true) {
window.gitlist.ajaxErrorHandler(json);
return;
}
$.snackbar({
htmlAllowed: true,
content: json.message,
})
} catch (e) {
window.gitlist.ajaxErrorHandler(e);
}
})
})