$(document).ready(function(){ $(‘.modal’).modal({show: false, keyboard: false}); // disable keyboard because it conflicts below $(‘.modal’).on(‘show.bs.modal’, function (event) { //add modal id to array modals.push(event.target.id);
$(document).ready(function(){ $(‘.modal’).modal({show: false, keyboard: false}); // disable keyboard because it conflicts below $(‘.modal’).on(‘show.bs.modal’, function (event) { //add modal id to array modals.push(event.target.id);