mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
allow opening tree nodes in a new tab
This commit is contained in:
parent
05345ddf8b
commit
8b4b7fa794
|
@ -119,7 +119,7 @@ window.baguetteBox = (function () {
|
||||||
var gallery = [];
|
var gallery = [];
|
||||||
[].forEach.call(tagsNodeList, function (imageElement, imageIndex) {
|
[].forEach.call(tagsNodeList, function (imageElement, imageIndex) {
|
||||||
var imageElementClickHandler = function (event) {
|
var imageElementClickHandler = function (event) {
|
||||||
if (event && event.ctrlKey)
|
if (event && (event.ctrlKey || event.metaKey))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
event.preventDefault ? event.preventDefault() : event.returnValue = false;
|
event.preventDefault ? event.preventDefault() : event.returnValue = false;
|
||||||
|
|
|
@ -1545,7 +1545,7 @@ var thegrid = (function () {
|
||||||
setsz();
|
setsz();
|
||||||
|
|
||||||
function gclick(e) {
|
function gclick(e) {
|
||||||
if (e && e.ctrlKey)
|
if (e && (e.ctrlKey || e.metaKey))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
var oth = ebi(this.getAttribute('ref')),
|
var oth = ebi(this.getAttribute('ref')),
|
||||||
|
@ -2265,6 +2265,9 @@ var treectl = (function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
function treego(e) {
|
function treego(e) {
|
||||||
|
if (e && (e.ctrlKey || e.metaKey))
|
||||||
|
return true;
|
||||||
|
|
||||||
ev(e);
|
ev(e);
|
||||||
if (this.getAttribute('class') == 'hl' &&
|
if (this.getAttribute('class') == 'hl' &&
|
||||||
this.previousSibling.textContent == '-') {
|
this.previousSibling.textContent == '-') {
|
||||||
|
|
|
@ -32,7 +32,7 @@ catch (ex) {
|
||||||
}
|
}
|
||||||
catch (ex) { }
|
catch (ex) { }
|
||||||
}
|
}
|
||||||
treectl.onscroll();
|
window['treectl'].onscroll(); // uhh
|
||||||
|
|
||||||
|
|
||||||
function up2k_flagbus() {
|
function up2k_flagbus() {
|
||||||
|
|
Loading…
Reference in a new issue