<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Georgia;
        panose-1:2 4 5 2 5 4 5 2 3 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Sprechblasentext Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.E-MailFormatvorlage18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.SprechblasentextZchn
        {mso-style-name:"Sprechblasentext Zchn";
        mso-style-priority:99;
        mso-style-link:Sprechblasentext;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:DE;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi Eric,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">thank you, but #password-recovery has the same problem. It works in scratchpad, but not in OPACUserJS.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#opac-password-recovery is the ID of <body>.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Right now, I tried with just<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">alert('Hello');<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">and even though it shows up in the source, it’s not executed.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Best<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Holger<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Eric Phetteplace [mailto:ephetteplace@cca.edu]
<br>
<b>Gesendet:</b> Mittwoch, 7. Februar 2018 18:06<br>
<b>An:</b> Holger Meissner<br>
<b>Cc:</b> koha-devel@lists.koha-community.org<br>
<b>Betreff:</b> Re: [Koha-devel] OPACUserJS, password recovery form<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia","serif"">Hi Holger,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia","serif""><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Georgia","serif"">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.<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif";color:#444444">Best,</span><o:p></o:p></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:11.5pt;font-family:"Arial","sans-serif";color:#444444;text-transform:uppercase">ERIC PHETTEPLACE<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt;line-height:14.4pt"><i><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#888B8D">Systems Librarian<o:p></o:p></span></i></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#888B8D"><o:p> </o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-family:"Arial","sans-serif";color:#888B8D"><a href="http://libraries.cca.edu" target="_blank">libraries.cca.edu</a> |
<a href="http://vault.cca.edu" target="_blank">vault.cca.edu</a> | </span><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#888B8D">510.594.3660</span><o:p></o:p></p>
<p style="mso-margin-top-alt:12.0pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt">
<span style="font-family:"Arial","sans-serif";color:#444444"><img border="0" height="50" id="_x0000_i1025" src="https://www.cca.edu/sites/default/files/images/2017/02/cca-sig-logo.png"><o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#888B8D">5212 Broadway, Oakland, CA 94618<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:9.5pt;font-family:"Arial","sans-serif";color:#888B8D">1111 8th St., San Francisco, CA </span><span style="font-family:"Arial","sans-serif";color:#888B8D">94107</span><o:p></o:p></p>
<p style="mso-margin-top-alt:24.0pt;margin-right:0cm;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt">
<span style="font-size:8.5pt;font-family:"Arial","sans-serif";color:#888B8D">Preferred Pronoun(s): he/him<o:p></o:p></span></p>
<p style="margin:0cm;margin-bottom:.0001pt"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";color:#888B8D">:(){ :|: & };:</span><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Feb 7, 2018 at 5:33 AM, Holger Meissner <<a href="mailto:Holger.Meissner@hs-gesundheit.de" target="_blank">Holger.Meissner@hs-gesundheit.de</a>> wrote:<o:p></o:p></p>
<p class="MsoNormal">Dear koha devs,<br>
<br>
login and email are identical for our patrons. I'd like to simplify password recovery by hiding one of the two inputs.<br>
<br>
$(document).ready(function(){<br>
<br>
$("#opac-password-recovery label[for='username']").hide();<br>
$("#opac-password-recovery label[for='email']").hide();<br>
$("#opac-password-recovery #email").hide();<br>
$("#opac-password-recovery #username").before('<br /><br />');<br>
<br>
});<br>
<br>
This works fine in scratchpad, but has no effect in OPACUserJS.<br>
<br>
Can anyone give me a hint?<br>
<br>
______________________________<br>
Holger Meißner<br>
<br>
Bibliothek und Fachinformation<br>
Systembibliothekar<br>
<br>
Hochschule für Gesundheit - University of Applied Sciences<br>
Gesundheitscampus 6-8, D-44801 Bochum, Raum C-2306<br>
Tel: <a href="tel:%2B49%20234%2077727-154">+49 234 77727-154</a>, Fax: <a href="tel:%2B49%20234%2077727-254">
+49 234 77727-254</a><br>
E-Mail: <a href="mailto:holger.meissner@hs-gesundheit.de">holger.meissner@hs-gesundheit.de</a>, Web:
<a href="http://www.hs-gesundheit.de" target="_blank">www.hs-gesundheit.de</a><br>
_______________________________________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org">Koha-devel@lists.koha-community.org</a><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="http://www.koha-community.org/" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" target="_blank">http://bugs.koha-community.org/</a><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>