diff options
author | rstular <rok@stular.eu> | 2020-05-14 11:26:31 +0200 |
---|---|---|
committer | rstular <rok@stular.eu> | 2020-05-14 11:26:31 +0200 |
commit | 9af54a942c1ff6f6395693a3510a69518a922f17 (patch) | |
tree | 42f3bf6fdb3a50b656e4175bb0fb49a4febc74cd | |
parent | Merge branch 'dev' of github.com:beziapp/beziapp.github.io into dev (diff) | |
download | beziapp-9af54a942c1ff6f6395693a3510a69518a922f17.tar beziapp-9af54a942c1ff6f6395693a3510a69518a922f17.tar.gz beziapp-9af54a942c1ff6f6395693a3510a69518a922f17.tar.bz2 beziapp-9af54a942c1ff6f6395693a3510a69518a922f17.tar.lz beziapp-9af54a942c1ff6f6395693a3510a69518a922f17.tar.xz beziapp-9af54a942c1ff6f6395693a3510a69518a922f17.tar.zst beziapp-9af54a942c1ff6f6395693a3510a69518a922f17.zip |
Diffstat (limited to '')
-rw-r--r-- | js/messaging.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/messaging.js b/js/messaging.js index 44c279e..60072f0 100644 --- a/js/messaging.js +++ b/js/messaging.js @@ -181,7 +181,7 @@ async function loadMsg(id) { "u": username, "p": password, "m": "fetchsporocilo", - "a": id.replace("_", "|") + "a": id.replace(/_/g, "|") }, dataType: "json", cache: false, @@ -224,7 +224,7 @@ async function deleteMsg(id) { "u": username, "p": password, "m": "izbrisisporocilo", - "a": id.replace("_", "|") + "a": id.replace(/_/g, "|") }, dataType: "json", cache: false, @@ -281,9 +281,9 @@ function displayMessage(id, data) { ${datatodecrypt} </div> ` - $(`#msg_body-${id.replace("|", "_")}`).html(msgcontent); + $(`#msg_body-${id.replace(/\|/g, "_")}`).html(msgcontent); } else { - $(`#msg_body-${id.replace("|", "_")}`).html(filterXSS(data["telo"])); + $(`#msg_body-${id.replace(/\|/g, "_")}`).html(filterXSS(data["telo"])); } } @@ -300,7 +300,7 @@ function displayData() { <span class="card-title"> ${filterXSS(element["id"])} </span> - <p id="msg_body-${filterXSS(element["id"]).replace("|", "_")}"> + <p id="msg_body-${filterXSS(element["id"]).replace(/\|/g, "_")}"> <button class="btn waves-effect waves-light" onclick="loadMsg('${filterXSS(element["id"])}')" |