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