mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Show password field when local is selected for both edit and add contact
This commit is contained in:
@@ -230,6 +230,21 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- JavaScript to Show/Hide Password Form Group -->
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('.authMethod').on('change', function() {
|
||||
var $form = $(this).closest('.authForm');
|
||||
if ($(this).val() === 'local') {
|
||||
$form.find('.passwordGroup').show();
|
||||
} else {
|
||||
$form.find('.passwordGroup').hide();
|
||||
}
|
||||
});
|
||||
$('.authMethod').trigger('change');
|
||||
});
|
||||
</script>
|
||||
|
||||
<?php
|
||||
|
||||
require_once("client_contact_add_modal.php");
|
||||
|
||||
Reference in New Issue
Block a user