set password field required when creating new coach
This commit is contained in:
@@ -44,6 +44,11 @@
|
|||||||
|
|
||||||
$('#ua_can_login').click(function() {
|
$('#ua_can_login').click(function() {
|
||||||
$(".admin_area").toggle(this.checked);
|
$(".admin_area").toggle(this.checked);
|
||||||
|
if ($('#ua_password').attr('required')) {
|
||||||
|
$('#ua_password').removeAttr('required');
|
||||||
|
} else {
|
||||||
|
$('#ua_password').attr('required', 'required');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.authorities').on('change', function () {
|
$('.authorities').on('change', function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user