From: Jean-André Santoni <jeanandre.sant...@biblibre.com> --- .../prog/en/modules/admin/currency.tmpl | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tmpl index 650b099..49bf9c4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tmpl @@ -37,6 +37,16 @@ $(document).ready(function() { new YAHOO.widget.Button("newcurrency"); + + // prevents users to check active with a currency != 1 + $("#rate").keyup(function() { + if ( $(this).val() == 1.0 ) { + $("#active").removeAttr('disabled'); + } else { + $("#active").removeAttr('checked'); + $("#active").attr('disabled','disabled'); + } + }); }); //]]> </script> -- 1.6.3.3 _______________________________________________ Koha-patches mailing list Koha-patches@lists.koha.org http://lists.koha.org/mailman/listinfo/koha-patches