Add client-side configuration setting reply-notifications
This commit is contained in:
parent
1dd95d5aad
commit
18b1d11007
@ -7,6 +7,7 @@ define(function() {
|
||||
"reply-to-self": false,
|
||||
"require-email": false,
|
||||
"require-author": false,
|
||||
"reply-notifications": false,
|
||||
"max-comments-top": "inf",
|
||||
"max-comments-nested": 5,
|
||||
"reveal-on-click": 5,
|
||||
|
@ -42,7 +42,7 @@ define(["app/dom", "app/utils", "app/config", "app/api", "app/jade", "app/i18n",
|
||||
|
||||
// only display notification checkbox if email is filled in
|
||||
var email_edit = function() {
|
||||
if ($("[name='email']", el).value.length > 0) {
|
||||
if (config["reply-notifications"] && $("[name='email']", el).value.length > 0) {
|
||||
$(".notification-section", el).show();
|
||||
} else {
|
||||
$(".notification-section", el).hide();
|
||||
|
Loading…
Reference in New Issue
Block a user