diff --git a/isso/js/app/config.js b/isso/js/app/config.js index 25af27c..ab1ba03 100644 --- a/isso/js/app/config.js +++ b/isso/js/app/config.js @@ -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, diff --git a/isso/js/app/isso.js b/isso/js/app/isso.js index e243349..b45cf01 100644 --- a/isso/js/app/isso.js +++ b/isso/js/app/isso.js @@ -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();