summaryrefslogtreecommitdiffstats
path: root/dist/js/messaging.js
diff options
context:
space:
mode:
authorAnton Luka Šijanec <sijanecantonluka@gmail.com>2020-06-04 16:31:04 +0200
committerGitHub <noreply@github.com>2020-06-04 16:31:04 +0200
commitf3a11185852127f70599295fdc5c7e9b72d790b6 (patch)
tree5e0f9eb2e0e41e6ff40f17ada1f508557ef3ab63 /dist/js/messaging.js
parentMerge pull request #21 from beziapp/github-actions-fix (diff)
parentslovnična napaka == crirical bug (diff)
downloadbeziapp-f3a11185852127f70599295fdc5c7e9b72d790b6.tar
beziapp-f3a11185852127f70599295fdc5c7e9b72d790b6.tar.gz
beziapp-f3a11185852127f70599295fdc5c7e9b72d790b6.tar.bz2
beziapp-f3a11185852127f70599295fdc5c7e9b72d790b6.tar.lz
beziapp-f3a11185852127f70599295fdc5c7e9b72d790b6.tar.xz
beziapp-f3a11185852127f70599295fdc5c7e9b72d790b6.tar.zst
beziapp-f3a11185852127f70599295fdc5c7e9b72d790b6.zip
Diffstat (limited to '')
-rw-r--r--dist/js/messaging.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/js/messaging.js b/dist/js/messaging.js
index 762db73..1650563 100644
--- a/dist/js/messaging.js
+++ b/dist/js/messaging.js
@@ -135,6 +135,6 @@ input.click();});$("#full-name").on("blur",validateName);$("#refresh-icon").clic
</div>
`}
console.log(msgcontent);console.log(encrypted_message);sendMessage(value[$("#full-name").val()],msgsubject,htmlEncode(msgcontent));$("#msg-body").val("");$("#full-name").val("");$("#msg-subject").val("");$("#msg-send").attr("disabled","disabled");additionalstufftoaddtomessage="";$("#msg-added-image").html("");$("#msg-e2ee-pass").hide();}).catch(function(err){UIAlert(`${D("unableToReadDirectory")} ${D("messageCouldNotBeSend")}`,"45245");console.log(err);});});}
-function getUrlParameter(sParam){const url_params=new URLSearchParams(window.location.search);const found_param=url_params.get(sParam);return found_param}
+function getUrlParameter(sParam){const url_params=new URLSearchParams(window.location.search);const found_param=url_params.get(sParam);return found_param;}
var additionalstufftoaddtomessage="";document.addEventListener("DOMContentLoaded",()=>{checkLogin();const modal_elems=document.querySelectorAll('.modal');const modal_options={onOpenStart:()=>{$("#fab-new").hide()},onCloseEnd:()=>{$("#fab-new").show()},dismissible:false};M.Modal.init(modal_elems,modal_options);loadDirectory();setupEventListeners();const tabs=document.querySelectorAll(".tabs");const tab_options={onShow:(tab)=>{if($(tab).hasClass("active")){switch(tab.id){case"beziapp-received":current_tab=0;loadMessages(false,0);break;case"beziapp-sent":current_tab=1;loadMessages(false,1);break;case"beziapp-deleted":current_tab=2;loadMessages(false,2);break;}}}};M.Tabs.init(tabs,tab_options);const fab_options={hoverEnabled:false,toolbarEnabled:false}
const fab_elem=document.querySelectorAll(".fixed-action-btn");M.FloatingActionButton.init(fab_elem,fab_options);var receivedmessages=null;loadMessages(true,0);M.updateTextFields();const menus=document.querySelectorAll(".side-menu");M.Sidenav.init(menus,{edge:"right",draggable:true});}); \ No newline at end of file