Commit 27999dacee9e46b118c931e46b58d56876beddf5
1 parent
776c1a20
Exists in
master
and in
5 other branches
Fix display events
Showing
1 changed file
with
1 additions
and
2 deletions
Show diff stats
js/main.js
| ... | ... | @@ -379,6 +379,7 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun |
| 379 | 379 | |
| 380 | 380 | var topic_id = proposal_id.split('-').pop(); |
| 381 | 381 | this.loadRandomProposal(topic_id); |
| 382 | + Main.display_events(); | |
| 382 | 383 | }, |
| 383 | 384 | display_proposal_detail: function(proposal_id){ |
| 384 | 385 | $('.content').removeClass('background'); /* Remove class background */ |
| ... | ... | @@ -804,7 +805,6 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun |
| 804 | 805 | |
| 805 | 806 | // Update URL and Navigate |
| 806 | 807 | Main.updateHash($link.attr('href')); |
| 807 | - Main.display_events(); | |
| 808 | 808 | }); |
| 809 | 809 | |
| 810 | 810 | $( '.proposal-item a' ).on('click', function(e){ |
| ... | ... | @@ -823,7 +823,6 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun |
| 823 | 823 | |
| 824 | 824 | // Update URL and Navigate |
| 825 | 825 | Main.updateHash($link.attr('href')); |
| 826 | - Main.display_events(); | |
| 827 | 826 | }); |
| 828 | 827 | |
| 829 | 828 | $( '.proposal-category .go-back' ).on('click', function(e){ | ... | ... |