added: confirmation before sending sms
This commit is contained in:
parent
269d3d4293
commit
a4ca26115c
3
main.js
3
main.js
|
@ -387,11 +387,14 @@ var snippets = [
|
||||||
|
|
||||||
function sms()
|
function sms()
|
||||||
{
|
{
|
||||||
|
if (confirm("Send note by SMS?"))
|
||||||
|
{
|
||||||
queryremote({action: "sms", data: currentnote.content.replace(/\n/g, " ")})
|
queryremote({action: "sms", data: currentnote.content.replace(/\n/g, " ")})
|
||||||
.then(data =>
|
.then(data =>
|
||||||
{
|
{
|
||||||
showtemporaryinfo("SMS sent. Result: '" + data.result + "'");
|
showtemporaryinfo("SMS sent. Result: '" + data.result + "'");
|
||||||
});
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function ask(question)
|
function ask(question)
|
||||||
|
|
Loading…
Reference in New Issue