[Koha-devel] OPACUserJS, password recovery form

Eric Phetteplace ephetteplace at cca.edu
Wed Feb 7 18:06:14 CET 2018


Hi Holger,

Looking at your password reset page, I think you need to update your
selectors to target the "#password-recovery" <div>. There is no element
with ID "opac-password-recovery". I'm not sure how the code is working in
scratchpad but if you fix the jQuery selectors, you should get the intended
effect.

Best,

ERIC PHETTEPLACE

Systems Librarian


libraries.cca.edu | vault.cca.edu | 510.594.3660

5212 Broadway, Oakland, CA 94618

1111 8th St., San Francisco, CA 94107

Preferred Pronoun(s): he/him

:(){ :|: & };:

On Wed, Feb 7, 2018 at 5:33 AM, Holger Meissner <
Holger.Meissner at hs-gesundheit.de> wrote:

> Dear koha devs,
>
> login and email are identical for our patrons. I'd like to simplify
> password recovery by hiding one of the two inputs.
>
> $(document).ready(function(){
>
> $("#opac-password-recovery label[for='username']").hide();
> $("#opac-password-recovery label[for='email']").hide();
> $("#opac-password-recovery #email").hide();
> $("#opac-password-recovery #username").before('<br /><br />');
>
> });
>
> This works fine in scratchpad, but has no effect in OPACUserJS.
>
> Can anyone give me a hint?
>
> ______________________________
> Holger Meißner
>
> Bibliothek und Fachinformation
> Systembibliothekar
>
> Hochschule für Gesundheit - University of Applied Sciences
> Gesundheitscampus 6-8, D-44801 Bochum, Raum C-2306
> Tel: +49 234 77727-154, Fax: +49 234 77727-254
> E-Mail: holger.meissner at hs-gesundheit.de, Web: www.hs-gesundheit.de
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
> website : http://www.koha-community.org/
> git : http://git.koha-community.org/
> bugs : http://bugs.koha-community.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20180207/7b2097ad/attachment.html>


More information about the Koha-devel mailing list