|
|
@@ -48,6 +48,10 @@ export default async function initContextMenu() { |
|
|
|
let btn = a.currentTarget.parentNode.nextElementSibling.getElementsByTagName("button")[0] |
|
|
|
btn.addEventListener('click', function (e) { |
|
|
|
let postUrl = btn.getAttribute('data-postbasepath') |
|
|
|
const postUrlArr = postUrl.split('/') |
|
|
|
postUrlArr[postUrlArr.length - 1] = encodeURIComponent(postUrlArr[postUrlArr.length - 1]) |
|
|
|
postUrl = postUrlArr.join('/') |
|
|
|
console.log(postUrl) |
|
|
|
let last_commit = btn.getAttribute('data-commit') |
|
|
|
let tree_path = btn.getAttribute('data-treepath') + e.target.parentNode.previousElementSibling.getElementsByTagName("input")[0].value |
|
|
|
let csrf = $("input[name='_csrf']").val() |
|
|
|