Display a hint when the exchange rate != 1.0: "The active currency
must have a rate of 1.0"
---
.../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 d2d0597..e235838 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 %]
<input type="checkbox" id="active" name="active" value="1" />
[% END %]
+ <span id="hint" class="hint"></span>
</li>
</ol>
--
1.7.9.5
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/