From ac6cfb28a322a79c82fc2c969ceed62e8efb3c61 Mon Sep 17 00:00:00 2001 From: Joe Atzberger Date: Fri, 24 Apr 2009 12:30:19 -0500 Subject: [PATCH] Make js prompts translatable using _("...") and comment out unused vars. Signed-off-by: Galen Charlton --- .../prog/en/includes/circ-toolbar.inc | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 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 fab39e814f..359e6978ad 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-toolbar.inc @@ -3,30 +3,29 @@ //'; + window.location='/cgi-bin/koha/members/deletemem.pl?member='; } } function confirm_updatechild() { - var is_confirmed = window.confirm('Are you sure you want to update this child to an Adult category? This cannot be undone.'); - + var is_confirmed = window.confirm(_('Are you sure you want to update this child to an Adult category? This cannot be undone.')); if (is_confirmed) { - window.location='/cgi-bin/koha/members/update-child.pl?op=update&borrowernumber=&catcode=&catcode_multi='; + window.location='/cgi-bin/koha/members/update-child.pl?op=update&borrowernumber=&catcode=&catcode_multi='; } } function confirm_reregistration() { - var is_confirmed = window.confirm('Are you sure you want to renew this patron\'s registration?'); - var borrowernumbervalue1 = $("#borrowernumber").attr("value"); + 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=&cardnumber=&destination=circ&reregistration=y'; } } function update_child() { - var borrowernumbervalue= $("#borrowernumber").attr("value"); + // var borrowernumbervalue= $("#borrowernumber").attr("value"); window.open('/cgi-bin/koha/members/update-child.pl?op=multi&borrowernumber=','UpdateChild','width=400,height=300,toolbar=no,scrollbars=no,resizable=yes'); -- 2.39.2