Skip to content

Commit

Permalink
fix: Fix the modification of user_registrations
Browse files Browse the repository at this point in the history
  • Loading branch information
AyakorK committed Dec 6, 2023
1 parent 8b22edd commit 3092e36
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions app/packs/src/decidim/user_registrations.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import PasswordToggler from "./password_toggler";

$(() => {
const $userRegistrationForm = $("#register-form");
const $userGroupFields = $userRegistrationForm.find(".user-group-fields");
const userPassword = document.querySelector(".user-password");
const inputSelector = 'input[name="user[sign_up_as]"]';
const newsletterSelector = 'input[type="checkbox"][name="user[newsletter]"]';
const $newsletterModal = $("#sign-up-newsletter-modal");
Expand All @@ -24,12 +21,4 @@ $(() => {

setGroupFieldsVisibility(value);
});

$newsletterModal.find("[data-check]").on("click", (event) => {
checkNewsletter($(event.target).data("check"));
});

if (userPassword) {
new PasswordToggler(userPassword).init();
}
});

0 comments on commit 3092e36

Please sign in to comment.