seitime-frappe/webnotes/templates/website_group/forum.html
2014-02-03 20:23:14 +05:30

28 lines
621 B
HTML

<div class="small text-muted post-list-help"></div>
<div class="post-list">
{{ post_list_html }}
</div>
<div class="text-center">
<button class="btn btn-default btn-more hide">More</button>
</div>
<script>
$(function() {
if($(".post").length===20) {
wn.setup_pagination($(".btn-more"), {
args: {
cmd: "webnotes.templates.website_group.forum.get_post_list_html",
limit_start: $(".post").length,
limit_length: 20,
group: website.group,
view: website.view
},
$wrapper: $(".post-list")
});
}
website.toggle_edit(true);
website.setup_upvote();
website.toggle_upvote();
});
</script>