bootbox
bootbox copied to clipboard
Close button does not invoke callback
Callback should be called for escape, cancel and close buttons. Now it only works with escape/cancel.
It could use escape button callback.
var index = -1;
if (typeof options['onEscape'] == 'function') {
index = handlers.length;
callbacks[index] = options['onEscape'];
handlers[index] = options['onEscape'];
}
And create close button:
closeButton = "<a" +
((index > 0) ? " data-handler='"+index +"' " : " ") +
"href='"+_defaultHref+"' class='close'>×</a>";
You're right - will be fixed in 3.1.0. Thanks for the report :)
Thank you. Bootbox is awesome :)
Sorry, just quickly rolled out 3.1.0 and forgot to implement this - will be done as the very next fix :)
Ok :D
Fixed in 3.2.0 :)
Thanks :+1: