We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
silverstripe/admin no longer provides jquery.js
silverstripe-memberprofiles/src/Pages/MemberProfilePageController.php
Line 717 in 2adf353
The text was updated successfully, but these errors were encountered:
This fixes it: master...mediasuitenz:silverstripe-memberprofiles:fix_jquery_errors
Sorry, something went wrong.
Blocking the jQuery at all, and replace the password switch with something like:
const showClick = document.getElementsByClassName('showOnClick')[0] const container = document.getElementsByClassName('showOnClickContainer')[0]; export default function() { if (showClick) { const link = showClick.querySelectorAll('a')[0]; if (link) { link.addEventListener('click', function(e) { e.preventDefault(); let classes = container.classList; if (classes.contains('d-none')) { classes.remove('d-none'); } else { classes.add('d-none'); } }); } } }
Fixes the whole jquery problem alltogether.
The script, IMO, is not worth requiring a library. It's a simple show/hide.
No branches or pull requests
silverstripe/admin no longer provides jquery.js
silverstripe-memberprofiles/src/Pages/MemberProfilePageController.php
Line 717 in 2adf353
The text was updated successfully, but these errors were encountered: