remotes/1693045480750635534/spooky-22
Aevann1 2021-07-21 13:48:31 +02:00
parent d53519c65d
commit edaed0bd44
2 changed files with 37 additions and 11 deletions

View File

@ -1,8 +1,37 @@
<!DOCTYPE html>
<html lang="en">
<head>
{% include "bootstrap.html" %}
<script>
//email change
// Show confirm password field when user clicks email box
$('#new_email').on('input', function () {
var id = document.getElementById("email-password");
var id2 = document.getElementById("email-password-label");
var id3 = document.getElementById("emailpasswordRequired");
id.classList.remove("d-none");
id2.classList.remove("d-none");
id3.classList.remove("d-none");
});
// 2FA toggle modal
$('#2faModal').on('hidden.bs.modal', function () {
var box = document.getElementById("2faToggle");
box.checked = !box.checked;
});
//Email verification text
function emailVerifyText() {
@ -188,9 +217,6 @@
</div>
{% endblock %}
{% include "bootstrap.html" %}
<!-- ClipboardJS -->

View File

@ -6,14 +6,14 @@
<script>
$(document).ready(function() {
$('#submitform').submit(function() {
// disable button
$("#create_button").prop("disabled", true);
// add spinner to button
$("#create_button").html('<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>Creating post');
$(document).ready(function() {
$('#submitform').submit(function() {
// disable button
$("#create_button").prop("disabled", true);
// add spinner to button
$("#create_button").html('<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>Creating post');
});
});
});
// Text Formatting