misc: open .popup links in new windows/tabs (#7444)
This commit is contained in:
parent
5ccd085591
commit
e85e5d55e5
|
@ -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');
|
||||
});
|
||||
});
|
||||
|
|
Reference in New Issue