Add a reveal on click parameter

pull/83/head
Srijan Choudhary 10 years ago
parent 2e2fba89a6
commit ab927e39d0

@ -7,6 +7,7 @@ define(function() {
"reply-to-self": false,
"max-comments-top": 20,
"max-comments-nested": 5,
"reveal-on-click": "5",
"avatar-bg": "#f0f0f0",
"avatar-fg": ["#9abf88", "#5698c4", "#e279a3", "#9163b6",
"#be5168", "#f19670", "#e4bf80", "#447c69"].join(" ")

@ -100,9 +100,9 @@ define(["app/text/html", "app/dom", "app/utils", "app/config", "app/api", "app/m
$("a.load_hidden", el).toggle("click",
function() {
el.remove();
api.fetch($("#isso-thread").getAttribute("data-isso-id"),
limit = config["max-comments-top"], nested_limit=0,
parent=commentWrapper.id,
api.fetch($("#isso-thread").getAttribute("data-isso-id"),
limit = config["reveal-on-click"], nested_limit="0",
parent=commentWrapper.id,
lastcreated=lastcreated).then(
function(rv) {
if (rv.total_replies == 0) {

Loading…
Cancel
Save