A free, self-hostable news aggregator…
sides_close_article: JS syntax
Alexandre Alapetite5208872481f5
diff --git a/p/scripts/main.js b/p/scripts/main.jsindex 11b06fec0..f01af20ff 100644--- a/p/scripts/main.js+++ b/p/scripts/main.js@@ -705,11 +705,8 @@ function init_stream(divStream) {if ($(e.target).closest('.content, .item.website, .item.link').length > 0) {return;}-- // setting for not-closing after clicking outside article area- if (context.sides_close_article &&- e.target.tagName.toUpperCase() === 'DIV' &&- $.inArray("flux_content", e.target.attributes)) {+ if (!context.sides_close_article && $(e.target).is('div.flux_content')) {+ // setting for not-closing after clicking outside article areareturn;}var old_active = $(".flux.current"),@@ -721,7 +718,6 @@ function init_stream(divStream) {}return true;}-toggleContent(new_active, old_active);});