mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -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 = [];
|
||||
[].forEach.call(tagsNodeList, function (imageElement, imageIndex) {
|
||||
var imageElementClickHandler = function (event) {
|
||||
if (event && event.ctrlKey)
|
||||
if (event && (event.ctrlKey || event.metaKey))
|
||||
return true;
|
||||
|
||||
event.preventDefault ? event.preventDefault() : event.returnValue = false;
|
||||
|
|
|
@ -1545,7 +1545,7 @@ var thegrid = (function () {
|
|||
setsz();
|
||||
|
||||
function gclick(e) {
|
||||
if (e && e.ctrlKey)
|
||||
if (e && (e.ctrlKey || e.metaKey))
|
||||
return true;
|
||||
|
||||
var oth = ebi(this.getAttribute('ref')),
|
||||
|
@ -2265,6 +2265,9 @@ var treectl = (function () {
|
|||
}
|
||||
|
||||
function treego(e) {
|
||||
if (e && (e.ctrlKey || e.metaKey))
|
||||
return true;
|
||||
|
||||
ev(e);
|
||||
if (this.getAttribute('class') == 'hl' &&
|
||||
this.previousSibling.textContent == '-') {
|
||||
|
|
|
@ -32,7 +32,7 @@ catch (ex) {
|
|||
}
|
||||
catch (ex) { }
|
||||
}
|
||||
treectl.onscroll();
|
||||
window['treectl'].onscroll(); // uhh
|
||||
|
||||
|
||||
function up2k_flagbus() {
|
||||
|
|
Loading…
Reference in a new issue