feat(apk): bouton Save dans les reglages, fermer n'enregistre plus
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -575,6 +575,7 @@
|
|||||||
type="password" autocomplete="off">
|
type="password" autocomplete="off">
|
||||||
<div class="in-x" data-clear="sPwd">×</div>
|
<div class="in-x" data-clear="sPwd">×</div>
|
||||||
</div>
|
</div>
|
||||||
|
<button class="btn wide main" id="sSave">Save</button>
|
||||||
<div class="note">The sync password never leaves this device. It is what
|
<div class="note">The sync password never leaves this device. It is what
|
||||||
encrypts the copy kept in the repository, so it must be the same on every
|
encrypts the copy kept in the repository, so it must be the same on every
|
||||||
device that shares it; the token only opens the repository. It is not the
|
device that shares it; the token only opens the repository. It is not the
|
||||||
@@ -1618,13 +1619,18 @@ function openSettings() {
|
|||||||
send('state?view=settings');
|
send('state?view=settings');
|
||||||
}
|
}
|
||||||
|
|
||||||
function closeSettings() {
|
// ENREGISTRER EST UN GESTE, FERMER N'ENREGISTRE RIEN. Fermer enregistrait :
|
||||||
// Ce qui a ete tape ici redescend vers Delphi avant de fermer, sinon un
|
// une URL effacee par erreur partait avec le retour, sans moyen de revenir.
|
||||||
// reglage modifie puis referme sans quitter le champ serait perdu.
|
// Desormais retour = annuler, et la page repart des valeurs enregistrees.
|
||||||
|
document.getElementById('sSave').addEventListener('click', function () {
|
||||||
elUrl.value = document.getElementById('sUrl').value.trim();
|
elUrl.value = document.getElementById('sUrl').value.trim();
|
||||||
elTok.value = document.getElementById('sTok').value.trim();
|
elTok.value = document.getElementById('sTok').value.trim();
|
||||||
elPwd.value = document.getElementById('sPwd').value;
|
elPwd.value = document.getElementById('sPwd').value;
|
||||||
pushConfig();
|
pushConfig();
|
||||||
|
toast('Saved');
|
||||||
|
});
|
||||||
|
|
||||||
|
function closeSettings() {
|
||||||
document.body.classList.remove('on-settings');
|
document.body.classList.remove('on-settings');
|
||||||
send('state?view=' + view);
|
send('state?view=' + view);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user