From 561e35774c606661ba639f7a1a8d1342d3ce8ccd Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 7 Sep 2023 17:16:21 +0200 Subject: [PATCH] wait #6257 @0.5 --- resources/linkeditor/js/linkeditor.js | 2 +- resources/linkeditor/js/linkeditor.links.js | 2 +- resources/linkeditor/js/linkeditor.utils.js | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/linkeditor/js/linkeditor.js b/resources/linkeditor/js/linkeditor.js index dd3cd2a76..7ebf4d89c 100644 --- a/resources/linkeditor/js/linkeditor.js +++ b/resources/linkeditor/js/linkeditor.js @@ -460,7 +460,7 @@ LinkEditor.prototype = { window.location.hash = '#' + this.currentPage; this.clearLinksAndRulers(); this.loader.loadPage(this.currentPage, 'left'); - if (!this.single) { + if (!this.single && !isSpecial) { this.loader.loadPage(this.currentPage + 1, 'right'); } $("#linkeditor-page-field input").val(this.currentNumericPage); diff --git a/resources/linkeditor/js/linkeditor.links.js b/resources/linkeditor/js/linkeditor.links.js index b65edbc43..3066f65b8 100644 --- a/resources/linkeditor/js/linkeditor.links.js +++ b/resources/linkeditor/js/linkeditor.links.js @@ -483,7 +483,7 @@ LinkeditorLinks.prototype = { openImageLink: function () { - let selection = $(".link.selected"); + let selection = $(".link.selected").eq(0); if (undefined === CAN_CONTAIN_LINKS[parseInt($(selection).attr('fb-type'))] || selection.length !== 1) { this.linkeditor.notification(TRANSLATIONS.error_open_image_link, 'warning'); return; diff --git a/resources/linkeditor/js/linkeditor.utils.js b/resources/linkeditor/js/linkeditor.utils.js index 2116afcdb..799f68f3e 100644 --- a/resources/linkeditor/js/linkeditor.utils.js +++ b/resources/linkeditor/js/linkeditor.utils.js @@ -21,7 +21,8 @@ LinkeditorUtils.prototype = { getSpecialPageAssetURL(page) { if (page.toString().indexOf('link_') === 0) { - return ASSETS[this.getLinkImageId(page)]['url']; + let asset = this.getLinkImageId(page); + return ASSETS[asset]['url']; } else { return THEME[page]['url']; } -- 2.39.5