Link to main page was opened in the inner iframe

pull/1/head
yflory 8 years ago
parent deda40375a
commit 2daa9f8658

@ -321,7 +321,17 @@ define([
var $span = $('<span>').text('CryptPad'); var $span = $('<span>').text('CryptPad');
var $aTagBig = $aTagSmall.clone().addClass('large').append($span); var $aTagBig = $aTagSmall.clone().addClass('large').append($span);
$aTagSmall.addClass('narrow'); $aTagSmall.addClass('narrow');
var onClick = function (e) {
e.preventDefault();
if (e.ctrlKey) {
window.open('/');
return;
}
window.location = "/";
};
$aTagBig.click(onClick);
$aTagSmall.click(onClick);
$linkContainer.append($aTagSmall).append($aTagBig); $linkContainer.append($aTagSmall).append($aTagBig);
}; };

Loading…
Cancel
Save