From cca9c793abfa4dcb29e9948e8836becc7c401f03 Mon Sep 17 00:00:00 2001 From: Pierre Date: Thu, 11 Nov 2021 00:24:22 +0100 Subject: [PATCH] Create public.js --- public.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 public.js diff --git a/public.js b/public.js new file mode 100644 index 0000000..c809ff7 --- /dev/null +++ b/public.js @@ -0,0 +1,16 @@ +// -- BEGIN LICENSE BLOCK ---------------------------------- +// This file is part of Email Optionnel, a plugin for Dotclear. +// +// Copyright (c) 2007-2020 Oleksandr Syenchuk, Pierre Van Glabeke, Gvx +// +// Licensed under the GPL version 2.0 license. +// A copy is available in LICENSE file or at +// http://www.gnu.org/licenses/old-licenses/gpl-2.0.html +// -- END LICENSE BLOCK ------------------------------------ + +'use strict' + +document.addEventListener("DOMContentLoaded", function() { + var id_mail = 'c_mail', el = document.getElementById(id_mail); + if(el) { el.removeAttribute('required'); } +});