From: Vincent Vanwaelscappel Date: Fri, 5 May 2023 16:08:24 +0000 (+0200) Subject: wait #5920 @0:20 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=3ac11146a512329c41502d7b2d74a86f789972b8;p=fluidbook-toolbox.git wait #5920 @0:20 --- diff --git a/resources/linkeditor/js/linkeditor.links.js b/resources/linkeditor/js/linkeditor.links.js index eb4af1096..98720fca0 100644 --- a/resources/linkeditor/js/linkeditor.links.js +++ b/resources/linkeditor/js/linkeditor.links.js @@ -297,9 +297,16 @@ LinkeditorLinks.prototype = { isHtmlName: true, name: TRANSLATIONS.cover_page_1, callback: function () { - $this.coverPage(1); + $this.coverPage(1, false); }, - } + }, + 'cover_0': { + isHtmlName: true, + name: TRANSLATIONS.cover_page_0, + callback: function () { + $this.coverPage(0, false); + }, + }, }); if (!$this.linkeditor.single) { res.items = $.extend(res.items, { @@ -309,7 +316,14 @@ LinkeditorLinks.prototype = { callback: function () { $this.coverPage(1, true); }, - } + }, + 'cover_double_0': { + isHtmlName: true, + name: TRANSLATIONS.cover_doublepage_0, + callback: function () { + $this.coverPage(0, true); + }, + }, }); } } diff --git a/resources/views/fluidbook_publication/link_editor.blade.php b/resources/views/fluidbook_publication/link_editor.blade.php index bd6e465db..e2ef18579 100644 --- a/resources/views/fluidbook_publication/link_editor.blade.php +++ b/resources/views/fluidbook_publication/link_editor.blade.php @@ -57,8 +57,11 @@ 'cut'=>__('Couper'), 'paste_here'=>__('Coller ici'), 'paste_in_place'=>__('Coller en place'), + 'cover_page_0'=>__('Recouvrir la page sans marge'), + 'cover_doublepage_0'=>__('Recouvrir la double-page sans marge'), 'cover_page_1'=>__('Recouvrir la page avec une marge de :margin',['margin'=>'1px']), - 'cover_doublepage_1'=>__('Recouvrir la double-page avec une marge de :margin',['margin'=>'1px']), + 'cover_doublepage_1'=>__('Recouvrir la double-page avec une marge de :margin',['margin'=>'1px'] + ), ]; $rulers=!count($rulers)?'{}':json_encode($rulers); @@ -265,7 +268,9 @@
- +