I'm trying to use alertify.js
as a confirmation dialog for all my confirm scripts. But it just isn't working like regular JS confirm
does. In the code below I never get a return true
function aConf ( mes ) {
alertify.confirm( mes, function (e) {
return e;
});
}
<a href=# onclick=if(aConf('Are you sure you wish to remove this?')) { function(); } return false;>Delete</a>
Of course if I replace aConf
with JS' confirm
it works. So why is alertify
not sending me back it's outcome?