From 4df770e68c0021e336cbf10ef0fc090cc27447a5 Mon Sep 17 00:00:00 2001 From: Pierre Date: Wed, 18 Apr 2018 11:54:06 +0200 Subject: [PATCH] Added Allow Comunic emails field --- assets/js/pages/settings/sections/general.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/assets/js/pages/settings/sections/general.js b/assets/js/pages/settings/sections/general.js index 59a63afd..6a504ccf 100644 --- a/assets/js/pages/settings/sections/general.js +++ b/assets/js/pages/settings/sections/general.js @@ -115,6 +115,14 @@ ComunicWeb.pages.settings.sections.general = { value: infos.lastName }); + //Allow mails from Comunic + var allowEmails = createFormGroup({ + target: target, + type: "checkbox", + label: "Allow Comunic to send you emails", + checked: infos.allow_comunic_mails + }); + //Page settings add_space(target); createElem2({ @@ -248,6 +256,7 @@ ComunicWeb.pages.settings.sections.general = { var settings = { firstName: firstName.value, lastName: lastName.value, + allow_comunic_mails: allowEmails.checked, isPublic: publicPage.checked, isOpen: openPage.checked, allowComments: allowComments.checked,