Browse Source

Merge pull request 'Modify parent url' (#15) from dev-wahyu into staging

Reviewed-on: ordo/adw-gantt#15
pull/1/head
ibnu 1 year ago
parent
commit
77aaa81c44
  1. 7
      view-mode/function/overlaySCurve.js

7
view-mode/function/overlaySCurve.js

@ -17,12 +17,9 @@ function messageListener(event) {
if (event.data && event.data.action === 'sendUrl') {
const parentUrl = event.data.url;
// Remove the base URL and hash
const path = parentUrl.replace("https://adw.ospro.id/#/dashboard-project/", "");
// Split the remaining path by "/"
parts = path.split("/");
if (parts[2] && parts[2] == "1") {
parts = parentUrl.split("/");
if (parts[7] && parts[7] == "1") {
$.ajax({
headers: {
"Content-Type": "application/json",

Loading…
Cancel
Save