]> _ Git - fluidbook-toolbox.git/commitdiff
wait #5998 @0.75
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 6 Jun 2023 15:45:51 +0000 (17:45 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 6 Jun 2023 15:45:51 +0000 (17:45 +0200)
app/Fields/FluidbookLinkEditor/ShowLinkMode.php
app/Fluidbook/Compiler/Links.php
app/SubForms/Link/Layer.php

index 99bdbbc96ef22937dea6a4790448d124510e911e..910b4733b3ab1fa86cf610f4c6a97a8c35a9b351 100644 (file)
@@ -18,6 +18,7 @@ class ShowLinkMode extends SelectFromArray
             'hide' => __('Masquer'),
             'toggle' => __('Basculer (Afficher si masqué, masquer si affiché)'),
             'exclusiveshow' => __('Afficher et masquer tous les autres'),
+            'showhide' => __('Afficher les liens (+) et masquer les liens (-)'),
             'shownext' => __('Afficher le lien suivant dans la série'),
             'shownextcycle' => __('Afficher le lien suivant dans la série') . ' (' . __('cycle') . ')',
             'showprev' => __('Afficher le lien précédent dans la série'),
index 3e2a759c2898d288e6075b3d7549c0334377fc42..c08b8cac4f2c30aeec549538f1ce45023c3a8f67 100644 (file)
@@ -219,7 +219,7 @@ trait Links
                 $ids = explode(',', $linkData['to']);
                 $close = ($linkData['close_button'] && $linkData['close_button'] !== 'none');
                 foreach ($ids as $id) {
-                    $id = trim($id);
+                    $id = trim($id,'+- ');
                     if ($id === 'tabs') {
                         $this->config->tabsHiddenAtStartup = true;
                     } else {
index 88a78224a09553958081085676be4a7fa9c98592..2b9c9b6b7e63d32e69842e631a77065190484ebc 100644 (file)
@@ -3,7 +3,7 @@
 namespace App\SubForms\Link;
 
 use App\Fluidbook\Link\Link;
-use Cubist\Backpack\Magic\Fields\Hidden;
+
 // __('!! Editeur de liens')
 class Layer extends Animated
 {
@@ -11,7 +11,7 @@ class Layer extends Animated
 
     public function addDestinationField()
     {
-        $this->addField("to", Hidden::class, __('Animer le(s) calque(s)'));
+        $this->addField("to", \App\Fields\FluidbookLinkEditor\Layer::class, __('Animer le(s) calque(s)'), ['default' => 'both']);
         parent::addDestinationField();
     }
 }