ajax nav for productions is working
This commit is contained in:
@@ -10,6 +10,9 @@
|
||||
|
||||
function init(){
|
||||
console.log("EdlpTheme init()");
|
||||
|
||||
// TODO: redirect all no-front pages to front with write hash
|
||||
|
||||
_$body.on('corpus-map-ready', onCorpusMapReady);
|
||||
initScrollbars();
|
||||
initAjaxLinks();
|
||||
@@ -39,14 +42,14 @@
|
||||
// TODO: implement history.js
|
||||
function initAjaxLinks(){
|
||||
console.log('initAjaxLinks');
|
||||
$('a', '#block-mainnavigation, #block-footer.menu--footer, #block-productions').addClass('ajax-link');
|
||||
$('a', '#block-mainnavigation, #block-footer.menu--footer, #block-productions, article.node h2.node-title, .productions-subtree, .productions-parent').addClass('ajax-link');
|
||||
|
||||
_$ajaxLinks = $('.ajax-link')
|
||||
_$ajaxLinks = $('.ajax-link:not(.ajax-enabled)')
|
||||
.each(function(i,e){
|
||||
var $this = $(this);
|
||||
|
||||
// avoid already ajaxified links
|
||||
if($this.is('.ajax-enable')) return;
|
||||
// if($this.is('.ajax-enable')) return;
|
||||
|
||||
var sys_path = $this.attr('data-drupal-link-system-path');
|
||||
if(sys_path){
|
||||
|
||||
Reference in New Issue
Block a user