Add a reveal on click parameter

This commit is contained in:
Srijan Choudhary 2014-05-03 01:15:19 +05:30
parent 2e2fba89a6
commit ab927e39d0
2 changed files with 4 additions and 3 deletions

View File

@ -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(" ")

View File

@ -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) {