Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bootstrap 3 dialog shown not event not firing

I used the below syntax

$('#modal').on('shown.bs.modal', function(event){
    alert('some');
});

but don't know what is the reason it just don't work..

I use the opposite code like

$('#modal').on('hidden.bs.modal', function(event){
    alert('some');
});

I work just fine..

like image 371
Ricki Vandenbroek Avatar asked Feb 16 '23 01:02

Ricki Vandenbroek


1 Answers

Refer to this pull request (looks like it is a bug)

Change this line in bootstrap.js on line 907 from:

that.$element.find('.modal-dialog') // wait for modal to slide in

To:

that.$element // wait for modal to slide in
like image 122
doitlikejustin Avatar answered Feb 17 '23 15:02

doitlikejustin