Is there an option with bootbox
that calls a function when the user closes the dialog via the 'x' button? I did not find a documentation about this when using bootbox.dialog()
.
Are there something like this:
bootbox.dialog({
message : 'My message',
callback : function() {
// User is closin' the dialog. Come on do somethin'
}
});
I even tried close
, closing
and closeCallback
instead of callback
, but non of them worked.