Fix middle click on the drive button
This commit is contained in:
@@ -593,17 +593,17 @@ define([
|
|||||||
|
|
||||||
// We need to override the "a" tag action here because it is inside the iframe!
|
// We need to override the "a" tag action here because it is inside the iframe!
|
||||||
var $aTag = $('<a>', {
|
var $aTag = $('<a>', {
|
||||||
href: "/",
|
href: "/drive/",
|
||||||
title: Messages.header_logoTitle,
|
title: Messages.header_logoTitle,
|
||||||
'class': "cryptpad-logo fa fa-hdd-o"
|
'class': "cryptpad-logo fa fa-hdd-o"
|
||||||
});
|
});
|
||||||
var onClick = function (e) {
|
var onClick = function (e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
if (e.ctrlKey) {
|
if (e.ctrlKey) {
|
||||||
window.open('/drive');
|
window.open('/drive/');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
window.location = "/drive";
|
window.location = "/drive/";
|
||||||
};
|
};
|
||||||
|
|
||||||
var onContext = function (e) { e.stopPropagation(); };
|
var onContext = function (e) { e.stopPropagation(); };
|
||||||
|
|||||||
Reference in New Issue
Block a user