From 31f4cb7bacec33a060b3efed7c7033b63b6eb9be Mon Sep 17 00:00:00 2001 From: Emma Heath Date: Wed, 15 Jan 2014 10:17:56 +1300 Subject: [PATCH] Bug 11488 Untranslatable warning "Are you sure you want to write off ..." Test plan 1. create some fines 2. to attempt to write off all the fines 3. make sure the messege still displays --- .../intranet-tmpl/prog/en/modules/members/pay.tt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt index 23203b1..d73e3ab 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/pay.tt @@ -16,7 +16,8 @@ function enableCheckboxActions(){ $(document).ready(function(){ $('#pay-fines-form').preventDoubleFormSubmit(); $("#woall").click(function(event){ - var answer = confirm(_("Are you sure you want to write off [% total | format('%.2f') %] in outstanding fines? This cannot be undone!")); + var msg = _("Are you sure you want to write off [% total | format('%.2f') %] in outstanding fines? This cannot be undone!"); + var answer = "confirm(msg); if (!answer){ event.preventDefault(); } -- 1.7.9.5