changed: sms message in a prompt instead of note content

This commit is contained in:
quenousimporte 2023-09-29 14:44:41 +02:00
parent fb9af373b3
commit 9c94a9e14a
1 changed files with 4 additions and 3 deletions

View File

@ -350,7 +350,7 @@ var commands = [
action: inserttodo
},
{
hint: "Send by SMS",
hint: "Send an SMS",
action: sms,
remoteonly: true
},
@ -470,9 +470,10 @@ function decryptstring(str)
function sms()
{
if (confirm("Send note by SMS?"))
var messsage = prompt("Type your message:");
if (messsage)
{
queryremote({action: "sms", data: currentnote.content.replace(/\n/g, " ")})
queryremote({action: "sms", data: messsage})
.then(data =>
{
showtemporaryinfo("SMS sent. Result: '" + data.result + "'");