Jquery alertify confirm after confirm does not work
<p>I am using Alertify Jquery plugin for my dialogs. The problem is that a confirm after a confirm does not seem to work:</p>

<pre><code>&lt;img onclick="go()" src="test.jpg"&gt;
&lt;script type="text/javascript"&gt;
// confirm dialog
function go(){

  alertify.confirm("Reset password?", function (e) {
    if (e) {
        // user clicked "ok"
        secondconfirm();
    } else {
        // user clicked "cancel"
    }
  });
}

function secondconfirm(){

  alertify.confirm("Password is changed&lt;br&gt;Mail it to the user?", function (e) {
    if (e) {
        //Done
        alertify.success("Password reset and mailed to user.");
    } else {
        // user clicked "cancel"
        alertify.success("Password reset.");
    }
  });
}
&lt;/script&gt;
</code></pre>

<p>I want to use it this way because based on clicking yes or no a second question has to be asked. If I use it like this, the second confirm dialog appears very shortly and then pops out of screen. I guess it has something to do with the first dialog being faded out.</p>

<p>How to solve this?</p>
