// Trigger the popup
ijQuery('#popup-__ID__' ).modal('show');
ijQuery('#link-__ID__').trigger('click');
// Event listener
ijQuery('#popup-__ID__').on('show.bs.modal', function (e) {
console.log(e);
});
// Click event listener
ijQuery('#link-__ID__').on('click', ...);
document.getElementById('link-__ID__').addEventListener('click', ...);