From a4146dcbb1112e07ccaf285a03711151e439e6c2 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 18 May 2012 09:19:34 -0400 Subject: [PATCH] Bug 8119 - Show hint when disabling active currency checkbox Display a hint when the exchange rate != 1.0: "The active currency must have a rate of 1.0" Signed-off-by: Chris Cormack Signed-off-by: Shari Perkins --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt index d2d05972ec..e2358389e3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt @@ -41,9 +41,11 @@ $("#rate").keyup(function() { if ( $(this).val() == 1.0 ) { $("#active").removeAttr('disabled'); + $("#hint").html(""); } else { $("#active").removeAttr('checked'); $("#active").attr('disabled','disabled'); + $("#hint").html(_("The active currency must have a rate of 1.0")); } }); }); @@ -114,6 +116,7 @@ [% ELSE %] [% END %] + -- 2.39.5