Kaynağa Gözat

history is bugging, added todos in code

Bachir Soussi Chiadmi 6 yıl önce
ebeveyn
işleme
f3fc776b71

+ 2 - 0
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');

+ 2 - 0
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');