Browse Source

git check hierarchy

pull/1/head
wahyu 1 year ago
parent
commit
b6c1ea8d06
  1. 3
      view-mode/function/overlaySCurve.js

3
view-mode/function/overlaySCurve.js

@ -16,10 +16,11 @@ function callback(response) {
function messageListener(event) { function messageListener(event) {
if (event.data && event.data.action === 'sendUrl') { if (event.data && event.data.action === 'sendUrl') {
const parentUrl = event.data.url; const parentUrl = event.data.url;
const isHierarchy = event.data.isHierarchy;
// Split the remaining path by "/" // Split the remaining path by "/"
parts = parentUrl.split("/"); parts = parentUrl.split("/");
if (parts[7] && parts[7] == "1") { if (parts[7] && parts[7] == "1" && isHierarchy) {
$.ajax({ $.ajax({
headers: { headers: {
"Content-Type": "application/json", "Content-Type": "application/json",

Loading…
Cancel
Save