Odkaz na knihovnu https://nakupanda.github.io/bootstrap3-dialog/
Alert
BootstrapDialog.alert({
type: BootstrapDialog.TYPE_DANGER, // TYPE_DEFAULT, TYPE_INFO, TYPE_PRIMARY, TYPE_SUCCESS, TYPE_WARNING, TYPE_DANGER
title: 'Pozor!',
message: "Vyplňte prosím příplatek <strong>" + label + "</strong>"
});
Confirm
BootstrapDialog.confirm('Hi Apple, are you sure?', function(result){
if(result)
{
alert('Yup.');
}
else
{
alert('Nope.');
}
});
BootstrapDialog.confirm({
title: 'WARNING',
message: 'Warning! Drop your banana?',
type: BootstrapDialog.TYPE_WARNING, // <-- Default value is BootstrapDialog.TYPE_PRIMARY
closable: true, // <-- Default value is false
draggable: true, // <-- Default value is false
btnCancelLabel: 'Do not drop it!', // <-- Default value is 'Cancel',
btnOKLabel: 'Drop it!', // <-- Default value is 'OK',
btnOKClass: 'btn-warning', // <-- If you didn't specify it, dialog type will be used,
callback: function(result)
{ // result will be true if button was click, while it will be false if users close the dialog directly.
if(result)
{
alert('Yup.');
}
else
{
alert('Nope.');
}
}
});