|
@@ -662,13 +662,20 @@
|
|
var $li = $link.parents('li');
|
|
var $li = $link.parents('li');
|
|
var sys_path = $link.attr('data-drupal-link-system-path');
|
|
var sys_path = $link.attr('data-drupal-link-system-path');
|
|
var url = $link.attr('href');
|
|
var url = $link.attr('href');
|
|
|
|
+ var title = $link.text();
|
|
if(!$li.is('.opened')){
|
|
if(!$li.is('.opened')){
|
|
_$entrees_block_termlinks.parents('li').removeClass('opened');
|
|
_$entrees_block_termlinks.parents('li').removeClass('opened');
|
|
$li.addClass('opened');
|
|
$li.addClass('opened');
|
|
$li.parents('.item-list').addClass('opened')
|
|
$li.parents('.item-list').addClass('opened')
|
|
filterEntree(tid);
|
|
filterEntree(tid);
|
|
if(bubbling){
|
|
if(bubbling){
|
|
- _$body.trigger({'type':'open_entree', 'tid':tid, 'url':url, 'sys_path':sys_path});
|
|
|
|
|
|
+ _$body.trigger({
|
|
|
|
+ 'type':'open_entree',
|
|
|
|
+ 'tid':tid,
|
|
|
|
+ 'url':url,
|
|
|
|
+ 'sys_path':sys_path,
|
|
|
|
+ 'title':title
|
|
|
|
+ });
|
|
}
|
|
}
|
|
// bubbling is true only when event is a real click on entree link
|
|
// bubbling is true only when event is a real click on entree link
|
|
}else if(bubbling){
|
|
}else if(bubbling){
|
|
@@ -800,6 +807,10 @@
|
|
_no_articles_nodes[i].fade();
|
|
_no_articles_nodes[i].fade();
|
|
}
|
|
}
|
|
updateRandomPlaylist(_articles_nodes);
|
|
updateRandomPlaylist(_articles_nodes);
|
|
|
|
+ if(typeof _paq !== 'undefined'){
|
|
|
|
+ // trackEvent(category, action, [name], [value])
|
|
|
|
+ _paq.push(['trackEvent', 'Corpus Articles', 'on']);
|
|
|
|
+ }
|
|
};
|
|
};
|
|
function deactivateArticlesFilter(){
|
|
function deactivateArticlesFilter(){
|
|
//console.log('deactivateArticlesFilter');
|
|
//console.log('deactivateArticlesFilter');
|
|
@@ -808,6 +819,10 @@
|
|
_no_articles_nodes[i].unFade();
|
|
_no_articles_nodes[i].unFade();
|
|
}
|
|
}
|
|
updateRandomPlaylist(_playlist);
|
|
updateRandomPlaylist(_playlist);
|
|
|
|
+ if(typeof _paq !== 'undefined'){
|
|
|
|
+ // trackEvent(category, action, [name], [value])
|
|
|
|
+ _paq.push(['trackEvent', 'Corpus Articles', 'off']);
|
|
|
|
+ }
|
|
};
|
|
};
|
|
function shutDownArticles(){
|
|
function shutDownArticles(){
|
|
// shutdown articles if active
|
|
// shutdown articles if active
|