jquery - Using bootbox the show event is not fired -
I am not able to catch show events for the dialog for the dialog to bootbox.confirm to make some CSS adjustments.
I tried things like the following but did not succeed:
$ (document) .on ("show.bs.modal", function (event) { ...}); $ (Document) .on ("show", function (event) {...}); $ (Document) .on ("show", ".bootbox", function (event) {...});
This should be the bootbox 4.xx and Bootstrap 3.xx for you:
var box = bootbox.dialog ({message: '', title: '', button: {}, show: wrong}); Box.on ("show.bs.modal", function () {warning ('this worked!');}); box.modal ('show'); or like it:
$ (document) .on ("show.bs.modal", function (event) {...} );
Comments
Post a Comment