From 45a481daeb6226b3cd2e9fd2cb1a636c6601ee41 Mon Sep 17 00:00:00 2001 From: Pelle Nilsson Date: Sun, 19 Mar 2017 18:42:03 +0100 Subject: [PATCH] Fix require-email setting, #308 --- isso/js/app/isso.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/isso/js/app/isso.js b/isso/js/app/isso.js index a46f43a..1875351 100644 --- a/isso/js/app/isso.js +++ b/isso/js/app/isso.js @@ -35,8 +35,8 @@ define(["app/dom", "app/utils", "app/config", "app/api", "app/jade", "app/i18n", // email is not optional if this config parameter is set if (config["require-email"]) { - $("[name='email']", el).placeholder = - $("[name='email']", el).placeholder.replace(/ \(.*\)/, ""); + $("[name='email']", el).setAttribute("placeholder", + $("[name='email']", el).getAttribute("placeholder").replace(/ \(.*\)/, "")); } // submit form, initialize optional fields with `null` and reset form.