Commit 8e62f31b578ba289da27ecb911eaaa976d75f84b
1 parent
33b06234
Exists in
master
and in
11 other branches
proposals_discussion: fixes scroll problem
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
public/proposals_list.js
@@ -10,9 +10,9 @@ jQuery(document).ready(function($) { | @@ -10,9 +10,9 @@ jQuery(document).ready(function($) { | ||
10 | }); | 10 | }); |
11 | 11 | ||
12 | function proposalsScroll() { | 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 | var nextSelector = 'div.more a'; | 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 | if(scroll.find(nextSelector).length > 0) { | 17 | if(scroll.find(nextSelector).length > 0) { |
18 | scroll.jscroll({ | 18 | scroll.jscroll({ |