Merge pull request #312 from pellenilsson/fix-require-email

Fix require-email setting
This commit is contained in:
Jelmer Vernooij 2017-07-17 21:03:56 +00:00 committed by GitHub
commit 71bda25568

View File

@ -41,8 +41,8 @@ define(["app/dom", "app/utils", "app/config", "app/api", "app/jade", "app/i18n",
// email is not optional if this config parameter is set // email is not optional if this config parameter is set
if (config["require-email"]) { if (config["require-email"]) {
$("[name='email']", el).placeholder = $("[name='email']", el).setAttribute("placeholder",
$("[name='email']", el).placeholder.replace(/ \(.*\)/, ""); $("[name='email']", el).getAttribute("placeholder").replace(/ \(.*\)/, ""));
} }
// author is not optional if this config parameter is set // author is not optional if this config parameter is set