From 1c02fc15ba1cb326e54f13283dc38df2cde2654f Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 26 Jun 2023 19:27:08 +0200 Subject: [PATCH] wait #6083 @0.25 --- resources/linkeditor/js/linkeditor.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/linkeditor/js/linkeditor.js b/resources/linkeditor/js/linkeditor.js index e83ba587c..dd3cd2a76 100644 --- a/resources/linkeditor/js/linkeditor.js +++ b/resources/linkeditor/js/linkeditor.js @@ -62,7 +62,7 @@ $.ajaxSetup({ function LinkEditor() { this.mobileFirst = FLUIDBOOK_DATA.settings.mobileNavigationType === 'mobilefirst'; - this.single = ['mobilefirst', 'portrait'].indexOf(FLUIDBOOK_DATA.settings.mobileNavigationType) >= 0; + this.single = ['mobilefirst', 'portrait'].indexOf(FLUIDBOOK_DATA.settings.mobileNavigationType) >= 0 || FLUIDBOOK_DATA.settings.pages <= 1; this.pw = FLUIDBOOK_DATA.settings.width; this.ph = FLUIDBOOK_DATA.settings.height; @@ -190,7 +190,7 @@ LinkEditor.prototype = { } else if (e.keyCode == 18) { $("#linkeditor-main").addClass('duplicate'); - } else if (e.key == '>' || e.keyCode===60 || e.keyCode===226) { + } else if (e.key == '>' || e.keyCode === 60 || e.keyCode === 226) { $("#linkeditor-main").addClass('polygon'); } $this.rulers.moveRuler(); @@ -204,7 +204,7 @@ LinkEditor.prototype = { $this.zoom.resetZoomDrag(); } else if (e.keyCode == 18) { $("#linkeditor-main").removeClass('duplicate'); - } else if (e.key == '>' || e.keyCode===60 || e.keyCode===226) { + } else if (e.key == '>' || e.keyCode === 60 || e.keyCode === 226) { $("#linkeditor-main").removeClass('polygon'); $this.links.closePolygonShape(); } -- 2.39.5