history is bugging, added todos in code
This commit is contained in:
@@ -304,6 +304,8 @@
|
|||||||
// console.log(document);
|
// console.log(document);
|
||||||
var url = window.location.pathname;
|
var url = window.location.pathname;
|
||||||
if( url != "" && url != "/"){
|
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);
|
var $link = $('a[href="'+url+'"][data-drupal-link-system-path]').eq(0);
|
||||||
console.log($link);
|
console.log($link);
|
||||||
var sys_path = $link.attr('data-drupal-link-system-path');
|
var sys_path = $link.attr('data-drupal-link-system-path');
|
||||||
|
|||||||
@@ -304,6 +304,8 @@
|
|||||||
// console.log(document);
|
// console.log(document);
|
||||||
var url = window.location.pathname;
|
var url = window.location.pathname;
|
||||||
if( url != "" && url != "/"){
|
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);
|
var $link = $('a[href="'+url+'"][data-drupal-link-system-path]').eq(0);
|
||||||
console.log($link);
|
console.log($link);
|
||||||
var sys_path = $link.attr('data-drupal-link-system-path');
|
var sys_path = $link.attr('data-drupal-link-system-path');
|
||||||
|
|||||||
Reference in New Issue
Block a user