shift clicking now opens links in a new window, closes #630

This commit is contained in:
psychobunny
2013-12-07 16:18:01 -05:00
parent 5a00767370
commit 98cf6eec71

View File

@@ -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 + '/', '');