history is bugging, added todos in code

This commit is contained in:
Bachir Soussi Chiadmi
2018-03-30 00:04:42 +02:00
parent 4b93f24f26
commit f3fc776b71
2 changed files with 4 additions and 0 deletions
@@ -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');
@@ -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');