]> _ Git - fluidbook-toolbox.git/commitdiff
wait #6788 @0:10 mettre à jour la preview au undo et redo
authorsoufiane <soufiane@cubedesigners.com>
Thu, 4 Apr 2024 13:15:48 +0000 (15:15 +0200)
committersoufiane <soufiane@cubedesigners.com>
Thu, 4 Apr 2024 13:15:48 +0000 (15:15 +0200)
resources/linkeditor/js/linkeditor.undo.js

index bbbbf24e156948e724d59f7187fee1fb6ea602b0..c59b1b3717c8f47efdb61be10702d718723caffc 100644 (file)
@@ -104,6 +104,7 @@ LinkeditorUndo.prototype = {
         //console.log('undo : current index', index, 'states length', this.states[this.linkeditor.getCurrentPage()].length);
 
         this.updateIconsStates();
+        this.linkeditor.links.setPreview();
     },
 
     redo: function () {
@@ -123,6 +124,7 @@ LinkeditorUndo.prototype = {
         //console.log('redo : current index', index, 'states length', this.states[this.linkeditor.getCurrentPage()].length);
 
         this.updateIconsStates();
+        this.linkeditor.links.setPreview();
     }
 }