summaryrefslogtreecommitdiffstats
path: root/assets/js/messaging.js
diff options
context:
space:
mode:
authorrstular <rok@stular.eu>2020-05-20 11:14:52 +0200
committerrstular <rok@stular.eu>2020-05-20 11:53:56 +0200
commit01f9eef0a5b397c12f3eee9c801167f851d77251 (patch)
treed708cf68f2640eff7ce69b314dd91a2770d2ee93 /assets/js/messaging.js
parentBug fix - modal opens when hash is proivded (diff)
downloadbeziapp-01f9eef0a5b397c12f3eee9c801167f851d77251.tar
beziapp-01f9eef0a5b397c12f3eee9c801167f851d77251.tar.gz
beziapp-01f9eef0a5b397c12f3eee9c801167f851d77251.tar.bz2
beziapp-01f9eef0a5b397c12f3eee9c801167f851d77251.tar.lz
beziapp-01f9eef0a5b397c12f3eee9c801167f851d77251.tar.xz
beziapp-01f9eef0a5b397c12f3eee9c801167f851d77251.tar.zst
beziapp-01f9eef0a5b397c12f3eee9c801167f851d77251.zip
Diffstat (limited to '')
-rw-r--r--assets/js/messaging.js8
1 files changed, 6 insertions, 2 deletions
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) {
</button>
<p>
</div>
- <div class="card-action">
+ <div class="card-action general-text">
<a onclick="deleteMsg('${filterXSS(element["id"])}')">
<i class="material-icons">delete</i>
</a>