[Koha] Multiple Statements
Liz Rea
liz at catalyst.net.nz
Tue Aug 12 11:18:55 NZST 2014
Hi Chrispin,
Like so:
$(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:");
var holdlinks = $("a:contains('Place Hold'),a:contains('Place hold')");
$(holdlinks).text("Get It Now!");
});
$(window).load(function(){
$("input[value='Place Hold']").attr("value","Get It Now!");
$("a:contains('Browse Shelf')").text("See Similar Items");
});
You only need one
$(document).ready(function(){
});
around all of your other statements that start with $, as above.
Cheers,
Liz Rea
Catalyst IT NZ
On 10/08/14 20:07, Chrispin Simasiku Sitali wrote:
> Greetings to all,
>
> How would I add multiple statements in opacuserjs. e.g.
>
> $(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:");
> });
>
>
> $(document).ready(function(){
> var holdlinks = $("a:contains('Place Hold'),a:contains('Place hold')");
> $(holdlinks).text("Get It Now!");
> });
> $(window).load(function(){
> $("input[value='Place Hold']").attr("value","Get It Now!");
>
>
>
>
> $(document).ready(function(){
> $("a:contains('Browse Shelf')").text("See Similar Items");
> });
>
> Please help. Teaching myself all this!
>
> Sitali Chrispin Simasiku
>
--
--
Liz Rea
Catalyst.Net Limited
Level 6, Catalyst House,
150 Willis Street, Wellington.
P.O Box 11053, Manners Street,
Wellington 6142
GPG: B149 A443 6B01 7386 C2C7 F481 B6c2 A49D 3726 38B7
More information about the Koha
mailing list