[Koha] Can't get jquery scripts to work in koha
Indranil Das Gupta
indradg at gmail.com
Thu Oct 16 16:35:10 NZDT 2014
Hello Marty,
On Sat, Oct 11, 2014 at 11:11 PM, Marty Jongepier
<marty.jongepier at gmail.com> wrote:
<snipped>
> So I tried something else, and found in the koha jquery library a script by
> Nicole C. Engard (and I am convinced she KNOWS what she is doing) to change
> the text of the OPAC login form. I pasted that into the opacuserjs system
> preference, and that did not do anything either. Just for reference, I
> pasted that in here as well (see end of message).
Nicole's script works perfectly fine. This is what you are tripping
over http://www.standardista.com/javascript/15-common-javascript-gotchas/#linebreaks
You had copy-pasted the code... right? You need to remove the
line-break after "Log in to" and the code will work :-)
> $(document).ready(function(){
> $("#auth legend:contains('Log in to your account')").text("Log in to
> your library account");
> $("#auth label[for='userid']").html("Library Card Number:");
> $("#auth label[for='password']").html("PIN:");});
cheers
-indra
--
Indranil Das Gupta
Phone : +91-98300-20971
Blog : http://indradg.randomink.org/blog
IRC : indradg on irc://irc.freenode.net
Twitter : indradg
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-
Please exchange editable Office documents only in ODF Format. No other
format is acceptable. Support Open Standards.
For a free editor supporting ODF, please visit LibreOffice -
http://www.documentfoundation.org
More information about the Koha
mailing list