A free, self-hostable news aggregator…
Corrige la vue globale
Marien Fressinaud3e9c3d7c4329
diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtmlindex 7ee42b88a..46e44783d 100644--- a/app/views/javascript/main.phtml+++ b/app/views/javascript/main.phtml@@ -317,9 +317,7 @@ function init_shortcuts () {});}-function init_stream_delegates() {- var divStream = $('#stream');-+function init_stream_delegates(divStream) {divStream.on('click', '.flux_header .item.title, .flux_header .item.date', function (e) { //flux_header_toggleold_active = $(".flux.active");new_active = $(this).parent ().parent ();@@ -399,6 +397,6 @@ $(document).ready (function () {init_posts ();init_column_categories ();init_shortcuts ();- init_stream_delegates();+ init_stream_delegates($('#stream'));init_nav_entries();});diff --git a/public/scripts/global_view.js b/public/scripts/global_view.jsindex b23e6680c..e87bf6810 100644--- a/public/scripts/global_view.js+++ b/public/scripts/global_view.js@@ -14,6 +14,7 @@ function load_panel(link) {init_load_more($("#panel"));init_posts();+ init_stream_delegates($("#panel"));$("#panel").slideToggle();