articles filter now center the nodes (instead of fading others)

This commit is contained in:
2018-09-13 15:17:06 +02:00
parent 51e9aa59f7
commit 03ab172f42
4 changed files with 34 additions and 10 deletions
@@ -680,6 +680,7 @@
e.preventDefault();
var $link = $(this);
// let the site-name link going through as it will shuffle the map if already active
if($link.is('.is-active') && !$link.is('.site-name'))
return false;
@@ -1858,7 +1859,10 @@
if(!_$body.is('.entity-type-taxonomy_term.bundle-entrees')){
if(!_$body.is('.entity-type-node.bundle-page')){
// we weren't on production or entree, so go back to front page
backToFrontPage();
if(!$('a.articles-link').is('.is-active')){
// don't go back to front page if articles filter is on
backToFrontPage();
}
}else{
// if we were on production page just scramble collection in case of map was filtered
_$corpus_canvas.trigger({'type':'scramble-collection'});