I have made a fiddle illustrating the issue I am facing at the moment. So every time I close and open a modal, shown.bs.modal also fires multiple times. In this
shown.bs.modal
You can try as following: (Bootstrap v3.3.6)
$('#dialog') .modal({show: false}) .on('hide.bs.modal', function () { //.................. }).on('shown.bs.modal', function (event) { //.................. }).on('hidden.bs.modal', function () { $("#dialog").off(); }); $('#dialog').modal('show');