$(document).ready(function () {
$('.alert-autocloseable-success').hide();
$('.alert-autocloseable-warning').hide();
$('.alert-autocloseable-danger').hide();
$('.alert-autocloseable-info').hide();
$('#autoclosable-btn-success').click(function() {
$('#autoclosable-btn-success').prop("disabled", true);
$('.alert-autocloseable-success').show();
$('.alert-autocloseable-success').delay(5000).fadeOut( "slow", function() {
$('#autoclosable-btn-success').prop("disabled", false);
});
});
$('#normal-btn-success').click(function() {
$('.alert-normal-success').show();
});
$('#autoclosable-btn-warning').click(function() {
$('#autoclosable-btn-warning').prop("disabled", true);
$('.alert-autocloseable-warning').show();
$('.alert-autocloseable-warning').delay(3000).fadeOut( "slow", function() {
$('#autoclosable-btn-warning').prop("disabled", false);
});
});
$('#normal-btn-warning').click(function() {
$('.alert-normal-warning').show();
});
$('#autoclosable-btn-danger').click(function() {
$('#autoclosable-btn-danger').prop("disabled", true);
$('.alert-autocloseable-danger').show();