[Koha] Multiple Statements
Nicholas van Rheede van Oudtshoorn
vanoudt at gmail.com
Tue Aug 12 12:28:29 NZST 2014
Basically, you need one opening line:
$(document).ready(function(){
And one closing line:
});
Then just copy and paste the contents from each statement in between. For
example:
$(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:");
$("a:contains('Browse Shelf')").text("See Similar Items");
// more statements here
});
Nick
> On Aug 11, 2014 4:35 PM, "Chrispin Simasiku Sitali" <libsitali at gmail.com>
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
>>
>> --
>> Charles Lwanga College of Education,
>> P. O. Box 660193,
>> Monze,
>> ZAMBIA.
>>
>> Mobile: +26 0979 869471
>> +26 0966 869471
>> SKYPE: Libsitali
>> _______________________________________________
>> Koha mailing list http://koha-community.org
>> Koha at lists.katipo.co.nz
>> http://lists.katipo.co.nz/mailman/listinfo/koha
More information about the Koha
mailing list