Thanks you very much Chris for coming to my aid. I really appreciate On 11 August 2014 10:51, Chris Cormack <chrisc@catalyst.net.nz> wrote:
* Chrispin Simasiku Sitali (libsitali@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"); });
Hi Crispin
You should only ever have one $document.ready so you can put this together as one block
$(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!"); $("a:contains('Browse Shelf')").text("See Similar Items"); });
$(window).load(function(){ $("input[value='Place Hold']").attr("value","Get It Now!");
Chris
-- Chris Cormack Catalyst IT Ltd. +64 4 803 2238 PO Box 11-053, Manners St, Wellington 6142, New Zealand
-- Charles Lwanga College of Education, P. O. Box 660193, Monze, ZAMBIA. Mobile: +26 0979 869471 +26 0966 869471 SKYPE: Libsitali