changed: sms message in a prompt instead of note content
This commit is contained in:
parent
fb9af373b3
commit
9c94a9e14a
7
main.js
7
main.js
|
@ -350,7 +350,7 @@ var commands = [
|
||||||
action: inserttodo
|
action: inserttodo
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
hint: "Send by SMS",
|
hint: "Send an SMS",
|
||||||
action: sms,
|
action: sms,
|
||||||
remoteonly: true
|
remoteonly: true
|
||||||
},
|
},
|
||||||
|
@ -470,9 +470,10 @@ function decryptstring(str)
|
||||||
|
|
||||||
function sms()
|
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 =>
|
.then(data =>
|
||||||
{
|
{
|
||||||
showtemporaryinfo("SMS sent. Result: '" + data.result + "'");
|
showtemporaryinfo("SMS sent. Result: '" + data.result + "'");
|
||||||
|
|
Loading…
Reference in New Issue