From 193ae3fb412085663a3ccd18ecac629f0db2a886 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Tue, 13 Jul 2021 21:06:16 -0300 Subject: [PATCH] Small adjusment to garantee page relaod from customizer when changing settings. --- .../options/single-elements/tainacan-single-structure.php | 5 +---- tainacan-blocksy/js/scripts.js | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tainacan-blocksy/inc/options/single-elements/tainacan-single-structure.php b/tainacan-blocksy/inc/options/single-elements/tainacan-single-structure.php index 7fddcc7..1448da1 100644 --- a/tainacan-blocksy/inc/options/single-elements/tainacan-single-structure.php +++ b/tainacan-blocksy/inc/options/single-elements/tainacan-single-structure.php @@ -12,7 +12,6 @@ $options = [ 'type' => 'ct-image-picker', 'value' => 'type-dam', 'design' => 'block', - 'setting' => [ 'transport' => 'postMessage' ], 'choices' => [ 'type-dam' => [ 'src' => tainacan_blocksy_image_picker_url( 'type-dam.svg' ), @@ -44,8 +43,6 @@ $options = [ // 'title' => __( 'Document and Attachments above Title', 'tainacan-blocksy' ), // ], ], - 'sync' => blocksy_sync_single_post_container([ - 'prefix' => $prefix - ]) + 'sync' => '' ], ]; \ No newline at end of file diff --git a/tainacan-blocksy/js/scripts.js b/tainacan-blocksy/js/scripts.js index bde4595..eff3f6e 100644 --- a/tainacan-blocksy/js/scripts.js +++ b/tainacan-blocksy/js/scripts.js @@ -15,7 +15,7 @@ if (window.ctEvents && window.ctEvents.default) { /* Handles reloading the Items list */ document.dispatchEvent(new Event('TainacanReloadItemsListComponent')); - + /* Handles updating Items carousel */ document.dispatchEvent(new Event('TainacanReloadCarouselItemsListBlock')); });