Commit 8b8eca62ab3fb1468b8edc3989616ab66d9bbca8
1 parent
c5016df0
Exists in
staging
and in
4 other branches
proposals_discussion: fixes scroll problem
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
plugins/proposals_discussion/public/proposals_list.js
... | ... | @@ -10,9 +10,9 @@ jQuery(document).ready(function($) { |
10 | 10 | }); |
11 | 11 | |
12 | 12 | function proposalsScroll() { |
13 | - var scroll = $('.article-body-proposals-discussion-plugin_topic .topic-content .proposals_list'); | |
13 | + var scroll = $('.article-body-proposals-discussion-plugin_topic .topic-content .proposals_list .proposals'); | |
14 | 14 | var nextSelector = 'div.more a'; |
15 | - if(scroll.data('jscroll')) scroll.jscroll.destroy(); | |
15 | + if(scroll.data('jscroll')) scroll.data('jscroll', null); | |
16 | 16 | |
17 | 17 | if(scroll.find(nextSelector).length > 0) { |
18 | 18 | scroll.jscroll({ | ... | ... |