diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt index ed87d1643d..e63e97e347 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt @@ -1705,6 +1705,7 @@ legend:hover { var LABEL_SET_TO_PATRON = _("Set to patron"); var LABEL_AGE = _("Age"); var MSG_MESSAGING_DFEAULTS = _("Change messaging preferences to default for this category?"); + var MSG_PASSWORD_LENGTH = _("Minimum password length: %s"); [% IF quickadd && opadd && !check_member %] $(document).ready(function () { diff --git a/koha-tmpl/intranet-tmpl/prog/js/members.js b/koha-tmpl/intranet-tmpl/prog/js/members.js index df9b82d962..73c15021cf 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/members.js +++ b/koha-tmpl/intranet-tmpl/prog/js/members.js @@ -68,6 +68,12 @@ function update_category_code(category_code) { $(mytables).find("li").hide(); $(mytables).find(" li[data-category_code='"+category_code+"']").show(); $(mytables).find(" li[data-category_code='']").show(); + + //Change password length hint + var hint = $("#password").siblings(".hint").first(); + var min_length = $('select'+category_selector+' option:selected').data('pwdLength'); + var hint_string = MSG_PASSWORD_LENGTH.format(min_length); + hint.html(hint_string); } function select_user(borrowernumber, borrower, relationship) {