From f3fc776b7195733edc8d793ef54e5a90c199a0b9 Mon Sep 17 00:00:00 2001 From: Bachir Soussi Chiadmi Date: Fri, 30 Mar 2018 00:04:42 +0200 Subject: [PATCH] history is bugging, added todos in code --- .../all/themes/custom/edlptheme/assets/dist/scripts/main.min.js | 2 ++ sites/all/themes/custom/edlptheme/assets/scripts/main.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sites/all/themes/custom/edlptheme/assets/dist/scripts/main.min.js b/sites/all/themes/custom/edlptheme/assets/dist/scripts/main.min.js index fc0ce7623..e294cafba 100644 --- a/sites/all/themes/custom/edlptheme/assets/dist/scripts/main.min.js +++ b/sites/all/themes/custom/edlptheme/assets/dist/scripts/main.min.js @@ -304,6 +304,8 @@ // console.log(document); var url = window.location.pathname; if( url != "" && url != "/"){ + // TODO: THIS IS NOT WORKING ! with link which dont exist in dom, e.g. productions + // TODO: how to retrieve sys_path without dom ? var $link = $('a[href="'+url+'"][data-drupal-link-system-path]').eq(0); console.log($link); var sys_path = $link.attr('data-drupal-link-system-path'); diff --git a/sites/all/themes/custom/edlptheme/assets/scripts/main.js b/sites/all/themes/custom/edlptheme/assets/scripts/main.js index fc0ce7623..e294cafba 100644 --- a/sites/all/themes/custom/edlptheme/assets/scripts/main.js +++ b/sites/all/themes/custom/edlptheme/assets/scripts/main.js @@ -304,6 +304,8 @@ // console.log(document); var url = window.location.pathname; if( url != "" && url != "/"){ + // TODO: THIS IS NOT WORKING ! with link which dont exist in dom, e.g. productions + // TODO: how to retrieve sys_path without dom ? var $link = $('a[href="'+url+'"][data-drupal-link-system-path]').eq(0); console.log($link); var sys_path = $link.attr('data-drupal-link-system-path');