From ee939434bad84ba239250873a125411e4afa549f Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Mon, 3 Dec 2012 14:08:19 +1300 Subject: [PATCH] Bug 6574 - js error in en-GB template breaks circulation toolbar To replicate: * install en-NZ translation (or en-GB) * activate the new language, and select it for use * pretend you are going to issue a book to a member (search for a member from "check out" in header) * without the patch, the toolbar will be incorrect. The toolbar will also be incorrect on moremember.pl. To test: * apply the patch * re-generate the en-NZ or en-GB translation * activate the new language, or select it for use * pretend you are going to issue a book to a member (search for a member from "check out" in header) * with the patch, the toolbar will appear to be correct. It will also be correct on moremember.pl. --- .../prog/en/includes/circ-toolbar.inc | 2 +- .../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 23c7de2..15af44c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc @@ -17,7 +17,7 @@ function confirm_updatechild() { } function confirm_reregistration() { - var is_confirmed = window.confirm(_('Are you sure you want to renew this patron\'s registration?')); + var is_confirmed = window.confirm(_("Are you sure you want to renew this patron's registration?")); // var borrowernumbervalue1 = $("#borrowernumber").attr("value"); if (is_confirmed) { window.location = '/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&cardnumber=[% cardnumber %]&destination=circ&reregistration=y'; 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 9acdf90..ba664dc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc @@ -17,7 +17,7 @@ function confirm_updatechild() { } function confirm_reregistration() { - var is_confirmed = window.confirm(_('Are you sure you want to renew this patron\'s registration?')); + var is_confirmed = window.confirm(_("Are you sure you want to renew this patron's registration?")); if (is_confirmed) { window.location='/cgi-bin/koha/members/moremember.pl?reregistration=y&borrowernumber=[% borrowernumber %]'; } -- 1.7.9.5