You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function confirmar_optimizar() {
krajeeDialog.confirm('¿Está seguro de OPTIMIZAR este Camino?',
function (result) {
if (result) { // ok button was pressed
// execute your code for confirmation
alert('OK');
return true;
} else { // confirmation was cancelled
// execute your code for cancellation
alert('CANCEL');
return false;
}
});
}
But the callback event for krajeeDialog.confirm is asyncronic, then I don't have the result of the confirm for the click action ontime, and the action is allways executed.
Is there any way to handle this with krajeeDialog directly or a workaround?
Thanks
The text was updated successfully, but these errors were encountered:
When the user clic a button, I need to show a confirm message before call some action.
PHP/HTML/YII2 PART:
Html::a('Optimizar', ['optimizar', 'id' => $model->id], ['onClick' => 'return confirmar_optimizar()']);
JAVASCRIPT PART:
But the callback event for krajeeDialog.confirm is asyncronic, then I don't have the result of the confirm for the click action ontime, and the action is allways executed.
Is there any way to handle this with krajeeDialog directly or a workaround?
Thanks
The text was updated successfully, but these errors were encountered: