Add a reveal on click parameter
This commit is contained in:
parent
2e2fba89a6
commit
ab927e39d0
@ -7,6 +7,7 @@ define(function() {
|
|||||||
"reply-to-self": false,
|
"reply-to-self": false,
|
||||||
"max-comments-top": 20,
|
"max-comments-top": 20,
|
||||||
"max-comments-nested": 5,
|
"max-comments-nested": 5,
|
||||||
|
"reveal-on-click": "5",
|
||||||
"avatar-bg": "#f0f0f0",
|
"avatar-bg": "#f0f0f0",
|
||||||
"avatar-fg": ["#9abf88", "#5698c4", "#e279a3", "#9163b6",
|
"avatar-fg": ["#9abf88", "#5698c4", "#e279a3", "#9163b6",
|
||||||
"#be5168", "#f19670", "#e4bf80", "#447c69"].join(" ")
|
"#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",
|
$("a.load_hidden", el).toggle("click",
|
||||||
function() {
|
function() {
|
||||||
el.remove();
|
el.remove();
|
||||||
api.fetch($("#isso-thread").getAttribute("data-isso-id"),
|
api.fetch($("#isso-thread").getAttribute("data-isso-id"),
|
||||||
limit = config["max-comments-top"], nested_limit=0,
|
limit = config["reveal-on-click"], nested_limit="0",
|
||||||
parent=commentWrapper.id,
|
parent=commentWrapper.id,
|
||||||
lastcreated=lastcreated).then(
|
lastcreated=lastcreated).then(
|
||||||
function(rv) {
|
function(rv) {
|
||||||
if (rv.total_replies == 0) {
|
if (rv.total_replies == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user