#2140 fix-1985

Merged
wangj merged 3 commits from fix-1985 into V20220519 1 year ago
  1. +4
    -0
      web_src/js/features/contexmenu.js

+ 4
- 0
web_src/js/features/contexmenu.js View File

@@ -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()


Loading…
Cancel
Save