From 5b0ee3f46799d3da3bc404338cd5f4cc36ef4a53 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 4 Dec 2007 17:40:42 -0600 Subject: [PATCH] Change to patron-renewal javascript to fix issues described in Bug 1620 Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc | 2 +- koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc index 9734244485..a02c3cb7e3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc @@ -14,7 +14,7 @@ function confirm_deletion() { function confirm_reregistration() { var is_confirmed = window.confirm('Are you sure you want to renew this patron\'s registration?'); - var borrowernumbervalue1=document.form.borrowernumber.value; + var borrowernumbervalue1 = $("#borrowernumber").attr("value"); if (is_confirmed) { window.location='/cgi-bin/koha/members/moremember.pl?reregistration=y&borrowernumber='+borrowernumbervalue1+''; } diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc index 168fdf11e4..4144df622f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc @@ -14,7 +14,7 @@ function confirm_deletion() { function confirm_reregistration() { var is_confirmed = window.confirm('Are you sure you want to renew this patron\'s registration?'); - var borrowernumbervalue1=document.form.borrowernumber.value; + var borrowernumbervalue1 = $("#borrowernumber").attr("value"); if (is_confirmed) { window.location='/cgi-bin/koha/members/moremember.pl?reregistration=y&borrowernumber='+borrowernumbervalue1+''; } -- 2.39.5