From: Vincent Vanwaelscappel Date: Wed, 26 Apr 2023 12:07:16 +0000 (+0200) Subject: wip #5885 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=9abe2b2962f24fd3e3f9071826329e0542535db9;p=fluidbook-toolbox.git wip #5885 @0:10 --- diff --git a/resources/linkeditor/js/linkeditor.js b/resources/linkeditor/js/linkeditor.js index 3a6b31eea..f8bdcdcc1 100644 --- a/resources/linkeditor/js/linkeditor.js +++ b/resources/linkeditor/js/linkeditor.js @@ -178,6 +178,7 @@ LinkEditor.prototype = { $this.zoom.resetZoomDrag(); } else if (e.keyCode == 18) { $("#linkeditor-main").removeClass('duplicate'); + return false; } $this.rulers.moveRuler(); }); diff --git a/resources/linkeditor/js/linkeditor.links.js b/resources/linkeditor/js/linkeditor.links.js index 0f158b9e5..1dbea0fc1 100644 --- a/resources/linkeditor/js/linkeditor.links.js +++ b/resources/linkeditor/js/linkeditor.links.js @@ -1208,8 +1208,9 @@ LinkeditorLinks.prototype = { currentPages.push(v.toString()); }) $.each(LINKS, function (uid, link) { - if (currentPages.indexOf(link.page) >= 0) { + if (currentPages.indexOf(link.page.toString()) >= 0) { if (existingUIDs.indexOf(link.uid) === -1) { + console.log("missing link", LINKS[uid], " deleting"); delete LINKS[uid]; } }