Merge branch 'soon' of github.com:xwiki-labs/cryptpad into soon

pull/1/head
yflory 4 years ago
commit 0b973f24bf

@ -62,7 +62,7 @@ define([
var imprintUrl = AppConfig.imprint && (typeof(AppConfig.imprint) === "boolean" ? var imprintUrl = AppConfig.imprint && (typeof(AppConfig.imprint) === "boolean" ?
'/imprint.html' : AppConfig.imprint); '/imprint.html' : AppConfig.imprint);
Pages.versionString = "v4.3.0"; Pages.versionString = "v4.3.1";
// used for the about menu // used for the about menu
Pages.imprintLink = AppConfig.imprint ? footLink(imprintUrl, 'imprint') : undefined; Pages.imprintLink = AppConfig.imprint ? footLink(imprintUrl, 'imprint') : undefined;

2
package-lock.json generated

@ -1,6 +1,6 @@
{ {
"name": "cryptpad", "name": "cryptpad",
"version": "4.3.0", "version": "4.3.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

@ -1,7 +1,7 @@
{ {
"name": "cryptpad", "name": "cryptpad",
"description": "realtime collaborative visual editor with zero knowlege server", "description": "realtime collaborative visual editor with zero knowlege server",
"version": "4.3.0", "version": "4.3.1",
"license": "AGPL-3.0+", "license": "AGPL-3.0+",
"repository": { "repository": {
"type": "git", "type": "git",

@ -578,7 +578,7 @@ define([
// Scroll into view // Scroll into view
if (!$last.length) { return; } if (!$last.length) { return; }
var visible = UIElements.isVisible($last[0], Env.$inner); var visible = UIElements.isVisible($last[0], Env.$contentContainer);
if (!visible) { $last[0].scrollIntoView(); } if (!visible) { $last[0].scrollIntoView(); }
}; };

@ -908,7 +908,7 @@ define([
$(a).click(function (e) { $(a).click(function (e) {
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
if (!obj.el || UIElements.isVisible(obj.el, $inner)) { return; } if (!obj.el || UIElements.isVisible(obj.el, $contentContainer)) { return; }
obj.el.scrollIntoView(); obj.el.scrollIntoView();
}); });
a.innerHTML = title; a.innerHTML = title;

@ -7,7 +7,10 @@ define([
var onLinkClicked = function (e, inner) { var onLinkClicked = function (e, inner) {
var $target = $(e.target); var $target = $(e.target);
if (!$target.is('a')) { return; } if (!$target.is('a')) {
$target = $target.closest('a');
if (!$target.length) { return; }
}
var href = $target.attr('href'); var href = $target.attr('href');
if (!href) { return; } if (!href) { return; }
var $inner = $(inner); var $inner = $(inner);
@ -66,7 +69,7 @@ define([
// Bubble to open the link in a new tab // Bubble to open the link in a new tab
$inner.click(function (e) { $inner.click(function (e) {
removeClickedLink($inner); removeClickedLink($inner);
if (e.target.nodeName.toUpperCase() === 'A') { if (e.target.nodeName.toUpperCase() === 'A' || $(e.target).closest('a').length) {
return void onLinkClicked(e, inner); return void onLinkClicked(e, inner);
} }
}); });

Loading…
Cancel
Save