From 01f9eef0a5b397c12f3eee9c801167f851d77251 Mon Sep 17 00:00:00 2001 From: rstular Date: Wed, 20 May 2020 11:14:52 +0200 Subject: CSS fixes --- assets/js/messaging.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'assets/js/messaging.js') diff --git a/assets/js/messaging.js b/assets/js/messaging.js index 5426c7b..f829cd5 100644 --- a/assets/js/messaging.js +++ b/assets/js/messaging.js @@ -93,7 +93,11 @@ function populateAutocomplete() { $(document).ready(function () { if (window.location.hash.length > 1 && !window.location.hash.substring(1).startsWith("beziapp")) { - $("#full-name").val(decodeURIComponent(window.location.hash.substring(1))); + var hashValue = decodeURIComponent(window.location.hash.substring(1)); + $("#full-name").val(hashValue); + if (hashValue in directory) { + $("#msg-send").removeAttr("disabled"); + } $("#beziapp-new-message").modal(); $("#beziapp-new-message").modal("open"); } @@ -346,7 +350,7 @@ function displayData(messageType) {

-

+
delete -- cgit v1.2.3