Skip to content

Commit

Permalink
Have tool helps respect ROOT_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Feb 14, 2025
1 parent 23eed57 commit 57bd00e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/essence/Ancillary/Help.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ const Help = {
},
finalize: function (helpKey) {
$(`#helpModal_${helpKey}`).on('click', function () {
$.get(`/public/helps/${helpKey}.md`, function (doc) {
// prettier-ignore
Modal.set(
$.get(
`${
window.mmgisglobal.ROOT_PATH || ''
}/public/helps/${helpKey}.md`,
function (doc) {
// prettier-ignore
Modal.set(
[
`<div id='HelpModal'>`,
`<div id='HelpModalTitle'>`,
Expand All @@ -33,7 +37,8 @@ const Help = {
})
}
)
})
}
)
})
},
}
Expand Down

0 comments on commit 57bd00e

Please sign in to comment.