articles filter now center the nodes (instead of fading others)
This commit is contained in:
@@ -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'});
|
||||
|
||||
Reference in New Issue
Block a user