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