mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +01:00
shift clicking now opens links in a new window, closes #630
This commit is contained in:
@@ -154,7 +154,7 @@ var ajaxify = {};
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!e.ctrlKey && e.which === 1) {
|
if ((!e.ctrlKey && !e.shiftKey) && e.which === 1) {
|
||||||
if (this.host === window.location.host) {
|
if (this.host === window.location.host) {
|
||||||
// Internal link
|
// Internal link
|
||||||
var url = this.href.replace(rootUrl + '/', '');
|
var url = this.href.replace(rootUrl + '/', '');
|
||||||
|
|||||||
Reference in New Issue
Block a user