diff options
| author | 2013-10-07 21:31:01 +0200 | |
|---|---|---|
| committer | 2013-10-07 21:31:01 +0200 | |
| commit | 3e9c3d7c4329a9cd0ffcb7b61502c8f2f66bc96e (patch) | |
| tree | 7120aed58f82de311bf80593c60266999d80a00f /app/views/javascript | |
| parent | b93c739125d53cf6b9901e0898efcd80835addca (diff) | |
Corrige la vue globale
On initialisait plus correctement le panel de la vue globale depuis
l'ajout de la fonction JS init_stream_delegates(). C'est corrigé :)
Diffstat (limited to 'app/views/javascript')
| -rw-r--r-- | app/views/javascript/main.phtml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/views/javascript/main.phtml b/app/views/javascript/main.phtml index 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_toggle old_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(); }); |
