Little fix

This commit is contained in:
Claude Brisson
2024-03-04 21:53:06 +01:00
parent 274734aee8
commit 99d53510ad
2 changed files with 8 additions and 2 deletions

View File

@@ -484,6 +484,10 @@
} }
} }
#logout {
cursor: pointer;
}
@media print { @media print {
body { body {

View File

@@ -51,7 +51,7 @@
<div class="field"> <div class="field">
<input name="password" type="password" placeholder="password"/> <input name="password" type="password" placeholder="password"/>
</div> </div>
<button id="login-email" type="button" class="ui green floating button">Log in</button> <button id="login-email" type="submit" class="ui green floating button">Log in</button>
</div> </div>
</form> </form>
</div> </div>
@@ -78,7 +78,8 @@
// ]]# // ]]#
#end #end
// #[[ // #[[
$('#login-email').on('click', e => { $('#login-form').on('submit', e => {
e.preventDefault();
let form = $('#login-form')[0] let form = $('#login-form')[0]
let password = form.val('password'); let password = form.val('password');
digestMessage(password).then(enc => { digestMessage(password).then(enc => {
@@ -93,6 +94,7 @@
} }
}); });
}); });
return false;
}); });
// ]]# // ]]#
}); });