diff --git a/root/usr/share/smanager/themes/AdminLTE/public/koozali/js/sme-password.js b/root/usr/share/smanager/themes/AdminLTE/public/koozali/js/sme-password.js index 106830d..bbf7479 100644 --- a/root/usr/share/smanager/themes/AdminLTE/public/koozali/js/sme-password.js +++ b/root/usr/share/smanager/themes/AdminLTE/public/koozali/js/sme-password.js @@ -1,33 +1,22 @@ -// js/sme-password.js +$(document).ready(function () { + const togglePassword = document.querySelector("#togglePassword"); + const password = document.querySelector("#password"); -$(document).ready(function() { -/* // For each password input - $('.sme-password').each(function() { - // Create a new container - //alert("sme-password"); - var $inputContainer = $('
'); - - // Move the input into the new container - $(this).wrap($inputContainer); - - // Create the toggle image - var $togglePassword = $('- %= dumper $c->current_route - %= dumper $mai_datas -
++ <<%= dumper $c->current_route %> + <<%= dumper $mai_datas %> +% } + % if ( stash 'error' ) {
- %= dumper $c->current_route - %= dumper $mai_datas - %= dumper $c->param('SMTPAuth') -
++ <<%= dumper $c->current_route %> + <<%= dumper $mai_datas %> + <<%= dumper $c->param('SMTPAuth') %> +% } % if ( stash 'error' ) {
- - %=l 'mai_LABEL_MODE' - - - % param 'FetchmailMethod' => $mai_datas->{fetchmailmethod} unless param 'FetchmailMethod'; - - %= select_field 'FetchmailMethod' => $c->get_retrieval_opt(), class => "" - -
+