misc: open .popup links in new windows/tabs (#7444)

This commit is contained in:
Frédéric Péters 2015-10-07 10:45:46 +02:00
parent 5ccd085591
commit e85e5d55e5
1 changed files with 8 additions and 0 deletions

View File

@ -487,3 +487,11 @@ if (document.getElementById && document.createTextNode) {
})();
}
/* open class="popup" links in new tabs/windows */
$(function() {
$('#content .popup a').on('click', function(e) {
e.preventDefault();
window.open($(this).attr('href'), '_blank');
});
});