Commit e316382e02bc202112783bff576f32d700957311
1 parent
2791f26e
Exists in
master
and in
11 other branches
proposals_discussion: fix infinite scroll
Showing
2 changed files
with
8 additions
and
7 deletions
Show diff stats
public/proposals_list.js
@@ -13,13 +13,8 @@ jQuery(document).ready(function($) { | @@ -13,13 +13,8 @@ jQuery(document).ready(function($) { | ||
13 | }); | 13 | }); |
14 | 14 | ||
15 | function proposalsScroll() { | 15 | function proposalsScroll() { |
16 | - $('.topic-content').data('jscroll', null); | ||
17 | - $('.topic-content').jscroll({ | ||
18 | - loadingHtml: '<img src="/images/loading.gif" alt="Loading" />Loading...', | ||
19 | - nextSelector: 'div.more a' | ||
20 | - }); | ||
21 | - $('.proposals').data('jscroll', null); | ||
22 | - $('.proposals').jscroll({ | 16 | + $('.article-body-proposals-discussion-plugin_topic .topic-content').data('jscroll', null); |
17 | + $('.article-body-proposals-discussion-plugin_topic .topic-content').jscroll({ | ||
23 | loadingHtml: '<img src="/images/loading.gif" alt="Loading" />Loading...', | 18 | loadingHtml: '<img src="/images/loading.gif" alt="Loading" />Loading...', |
24 | nextSelector: 'div.more a' | 19 | nextSelector: 'div.more a' |
25 | }); | 20 | }); |
public/style.css
@@ -115,6 +115,12 @@ form .proposals-discussion-plugin .body textarea { | @@ -115,6 +115,12 @@ form .proposals-discussion-plugin .body textarea { | ||
115 | box-shadow: 5px 5px 5px -2px #ddd; | 115 | box-shadow: 5px 5px 5px -2px #ddd; |
116 | } | 116 | } |
117 | 117 | ||
118 | +.topics .proposals .more { | ||
119 | + display: none; | ||
120 | +} | ||
121 | +#content .topics .actions.topic-item { | ||
122 | + background-color: #EEE; | ||
123 | +} | ||
118 | #content .topics .actions.topic-item a { | 124 | #content .topics .actions.topic-item a { |
119 | width: 93%; | 125 | width: 93%; |
120 | display: inline-block; | 126 | display: inline-block; |