]> _ Git - fluidbook-toolbox.git/commitdiff
fix #5646 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 23 Oct 2023 13:16:04 +0000 (15:16 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 23 Oct 2023 13:16:04 +0000 (15:16 +0200)
app/Fluidbook/Compiler/Compiler.php
app/Fluidbook/Compiler/Links.php
resources/linkeditor/js/linkeditor.links.js

index 6f1ceb852340c4d2526b54f4a5241ef8ad8cec69..3db3351020558668b741a7b12eb4feab20e4ffaf 100644 (file)
@@ -1633,6 +1633,7 @@ class Compiler extends Base implements CompilerInterface
                 $v = $data[$k] = !!$v;
             }
         }
+
         $data['hiddenContents'] = implode('', $this->hiddenContents);
         $data['id'] = $this->book_id;
         $data['compiler'] = 3;
index 77a28d8e65cde941b9cfd3299961e7fc447ee7c5..abbd89fb1414348040545dd7e718c21cf7a3ea7c 100644 (file)
@@ -402,6 +402,7 @@ trait Links
             }
         }
 
+
         $allpages = range(0, $this->getFluidbook()->getPagesNumber() + 1);
         if ($this->fluidbookSettings->themeEnableAfterSearch) {
             $allpages[] = 'aftersearch';
index a3eaa2fe0f63fc8c6be6ef43310cf4c5e62309f9..340308555a550c947cb5e2518dc79bf4d6b00e22 100644 (file)
@@ -421,8 +421,8 @@ LinkeditorLinks.prototype = {
 
         var clipboardContent = $('<div />');
         $.each(selection, function () {
-            var item = $(this);
-            clone = $(item).clone();
+            let item = $(this);
+            let clone = $(item).clone();
             if (cut) {
                 $this.deleteLink(item, false);
             }