Do not show 'reply' if nesting-level is 0
This commit is contained in:
parent
64b5b4b97b
commit
f36f3eb771
@ -151,6 +151,7 @@ define(["app/dom", "app/utils", "app/config", "app/api", "app/jade", "app/i18n",
|
||||
text = $("#isso-" + comment.id + " > .text-wrapper > .text");
|
||||
|
||||
var form = null; // XXX: probably a good place for a closure
|
||||
if (config["nesting-level"] >= 1) {
|
||||
$("a.reply", footer).toggle("click",
|
||||
function(toggler) {
|
||||
// Check if this new reply will result in a nesting level over
|
||||
@ -172,6 +173,7 @@ define(["app/dom", "app/utils", "app/config", "app/api", "app/jade", "app/i18n",
|
||||
$("a.reply", footer).textContent = i18n.translate("comment-reply");
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
if (config.vote) {
|
||||
// update vote counter, but hide if votes sum to 0
|
||||
@ -314,7 +316,7 @@ define(["app/dom", "app/utils", "app/config", "app/api", "app/jade", "app/i18n",
|
||||
}
|
||||
};
|
||||
|
||||
if (! config["reply-to-self"] && utils.cookie("isso-" + comment.id)) {
|
||||
if (config["nesting-level"] >= 1 && config["reply-to-self"] && utils.cookie("isso-" + comment.id)) {
|
||||
show($("a.reply", footer).detach());
|
||||
}
|
||||
|
||||
|
@ -31,6 +31,7 @@ div(class='isso-comment' id='isso-#{comment.id}')
|
||||
span(class='spacer') |
|
||||
a(class='downvote' href='#')
|
||||
!= svg['arrow-down']
|
||||
if conf["nesting-level"] >= 1
|
||||
a(class='reply' href='#') #{i18n('comment-reply')}
|
||||
a(class='edit' href='#') #{i18n('comment-edit')}
|
||||
a(class='delete' href='#') #{i18n('comment-delete')}
|
||||
|
Loading…
Reference in New Issue
Block a user