Re: [Koha] jQuery: Change default active tab in borrower account page

2015-03-21 Thread Chad Roseburg
Thanks guys -- this is perfect! On Mar 20, 2015 11:42 AM, Kyle Hall kyle.m.h...@gmail.com wrote: Thanks Jonathan! http://www.kylehall.info ByWater Solutions ( http://bywatersolutions.com ) Meadville Public Library ( http://www.meadvillelibrary.org ) Crawford County Federated Library System

Re: [Koha] jQuery: Change default active tab in borrower account page

2015-03-20 Thread Jonathan Druart
href.replace(pay, boraccount); won't modify href Try with href = href.replace(pay, boraccount); This should work :) 2015-03-20 12:52 GMT+01:00 Kyle Hall kyle.m.h...@gmail.com: This should work in theory, but my href.replace line isn't working: $( document ).ready(function() { var

Re: [Koha] jQuery: Change default active tab in borrower account page

2015-03-20 Thread Kyle Hall
This should work in theory, but my href.replace line isn't working: $( document ).ready(function() { var a = $(#menu a[href*='/cgi-bin/koha/members/pay.pl']); var href = a.attr('href'); href.replace(pay, boraccount); a.attr('href', href ); }); Perhaps someone else can catch my

Re: [Koha] jQuery: Change default active tab in borrower account page

2015-03-20 Thread Kyle Hall
Thanks Jonathan! http://www.kylehall.info ByWater Solutions ( http://bywatersolutions.com ) Meadville Public Library ( http://www.meadvillelibrary.org ) Crawford County Federated Library System ( http://www.ccfls.org ) Mill Run Technology Solutions ( http://millruntech.com ) On Fri, Mar 20, 2015

[Koha] jQuery: Change default active tab in borrower account page

2015-03-19 Thread Chad Roseburg
Currently, the patron fines link in the staff interface links to: Eg., http://koha.testing.com/cgi-bin/koha/members/pay.pl?borrowernumber=611739 We're wondering if it's possible, through the magic of jQuery, to have it link to: