Error message doesn't disappear when error occurred second time.
Having the flowing jQuery function:
function ClusionSuccess(result)
{
if (result.success) {
reloadById();
}
else {
$("#errMsg").text(result.errorMessage)
.fadeIn('slow')
.delay(3000)
.fadeOut('slow')
.queue(function () { $("#btnAddClusion").prop("disabled", false) });
}
}
So when the else statement is hit first time, the error message appears, stays 3 seconds, fade out and enable a button. It is working perfectly but the second time when the else gets hits, the error message doesn't appear anymore and the button stays disabled (like that prop is not called)
Any suggestions for this strange behavior here ?