[ad_1]
For external events (events not on my website) I change the links to open in a new tab (target=”_blank”). This works fine in list mode but in grid mode it opens the link in a new tab but the current tab also gets redirected. This is due to the following code in events-manager.js
$(document).on('click', '.em-grid .em-item[data-href]', function(e){
if( e.target.type !== 'a' ){
window.location.href = this.getAttribute('data-href');
}
});
I would like this to be removed so I don’t have to remove it each time there’s a new release of the plugin.