app.dialog.alert does not wait for OK confirm, to continue execution …
In my case I want to run after alert dialog OK confirm the following lines of code execution… underneath…
if I use this:
app.dialog.alert('the record was deleted, you will be redirected to the main screen!');
setTimeout(function() {
app.router.back('/home/', {
ignoreCache: true,
force: true,
context: {}
});
}, 1500);
in this sample the alert shows but disappear without waiting OK click and excecute the underneath code :
setTimeout(function() {
app.router.back('/home/', {
ignoreCache: true,
force: true,
context: {}
});
}, 1500);
is there any wait to pause the alert so it has to wait OK click confirm to continue?
any ideas for this issue?