summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton L. Šijanec <sijanecantonluka@gmail.com>2020-05-14 20:03:44 +0200
committerAnton L. Šijanec <sijanecantonluka@gmail.com>2020-05-14 20:03:44 +0200
commitea9a711a4c584f9cf7eaeeac4f15afd79e4563ee (patch)
tree1f99f941eb7023ecb82527ab962223301df76652
parentAnother styling fix (diff)
downloadbeziapp-ea9a711a4c584f9cf7eaeeac4f15afd79e4563ee.tar
beziapp-ea9a711a4c584f9cf7eaeeac4f15afd79e4563ee.tar.gz
beziapp-ea9a711a4c584f9cf7eaeeac4f15afd79e4563ee.tar.bz2
beziapp-ea9a711a4c584f9cf7eaeeac4f15afd79e4563ee.tar.lz
beziapp-ea9a711a4c584f9cf7eaeeac4f15afd79e4563ee.tar.xz
beziapp-ea9a711a4c584f9cf7eaeeac4f15afd79e4563ee.tar.zst
beziapp-ea9a711a4c584f9cf7eaeeac4f15afd79e4563ee.zip
-rw-r--r--js/messaging.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/js/messaging.js b/js/messaging.js
index c34e242..7ef3386 100644
--- a/js/messaging.js
+++ b/js/messaging.js
@@ -418,11 +418,11 @@ async function validateName() {
if ($("#full-name").val() in directory) {
$("#full-name").addClass("valid");
$("#full-name").removeClass("invalid");
- $("#msg-send").prop("disabled", false);
+ $("#msg-send").removeAttr("disabled");
} else {
$("#full-name").addClass("invalid");
$("#full-name").removeClass("valid");
- $("#msg-send").prop("disabled", true);
+ $("#msg-send").attr("disabled", "disabled");
}
}
}
@@ -493,7 +493,7 @@ function setupEventListeners() {
localforage.getItem("directory").then(function (value) {
var msgcontent = $("#msg-body").val() + additionalstufftoaddtomessage;
var msgsubject = $("#msg-subject").val();
- if ($("#msg-e2ee-pass").prop("hidden") !== true) {
+ if ($("#encryption-key-input").prop("hidden") !== true) {
var randomencdivid = Math.floor(Math.random() * 9999).toString().padStart(4, "0");
var addrparts = window.location.href.split("/"); // engleski
@@ -530,7 +530,8 @@ function setupEventListeners() {
$("#msg-body").val("");
$("#full-name").val("");
$("#msg-subject").val("");
- $("#msg-send").prop("disabled", true);
+ // $("#msg-send").prop("disabled", true);
+ $("#msg-send").attr("disabled", "disabled");
additionalstufftoaddtomessage = "";
$("#msg-added-image").html("");
@@ -605,4 +606,4 @@ document.addEventListener("DOMContentLoaded", () => {
// Setup side menu
const menus = document.querySelectorAll(".side-menu");
M.Sidenav.init(menus, { edge: "right", draggable: true });
-}); \ No newline at end of file
+});