1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Piccole migliorie

This commit is contained in:
Luca
2019-10-03 12:09:14 +02:00
parent c67ca53568
commit d37b6eeffb
4 changed files with 16 additions and 10 deletions

View File

@@ -47,9 +47,13 @@ if (!empty($user)) {
</div>
<script>
$(function() {
function no_check_pwd(){
$("#password").attr("disabled", true);
$("#submit-button").attr("disabled", false).removeClass("disabled");
}
$("#bs-popup").on("shown.bs.modal", function () {
no_check_pwd();
});
$("#change_password").change(function() {
@@ -57,13 +61,14 @@ if (!empty($user)) {
$("#password").attr("disabled", false);
$("#password").change();
} else {
$("#password").attr("disabled", true);
$("#submit-button").attr("disabled", false).removeClass("disabled");
no_check_pwd();
}
})
});
</script>';
}
include $structure->filepath('components/password.php');
echo '

View File

@@ -14,7 +14,7 @@ switch ($name) {
['id', '<>', $id_record],
])->count() == 0;
$message = $disponibile ? tr("L'username è disponbile") : tr("L'username è già utilizzato");
$message = $disponibile ? tr("L'username è disponbile") : tr("L'username è già in uso");
$result = $disponibile;
// Lunghezza minima del nome utente (username)