Small adjusment to garantee page relaod from customizer when changing settings.

This commit is contained in:
mateuswetah 2021-07-13 21:06:16 -03:00
parent 319df115cc
commit 193ae3fb41
2 changed files with 2 additions and 5 deletions

View File

@ -12,7 +12,6 @@ $options = [
'type' => 'ct-image-picker', 'type' => 'ct-image-picker',
'value' => 'type-dam', 'value' => 'type-dam',
'design' => 'block', 'design' => 'block',
'setting' => [ 'transport' => 'postMessage' ],
'choices' => [ 'choices' => [
'type-dam' => [ 'type-dam' => [
'src' => tainacan_blocksy_image_picker_url( 'type-dam.svg' ), 'src' => tainacan_blocksy_image_picker_url( 'type-dam.svg' ),
@ -44,8 +43,6 @@ $options = [
// 'title' => __( 'Document and Attachments above Title', 'tainacan-blocksy' ), // 'title' => __( 'Document and Attachments above Title', 'tainacan-blocksy' ),
// ], // ],
], ],
'sync' => blocksy_sync_single_post_container([ 'sync' => ''
'prefix' => $prefix
])
], ],
]; ];

View File

@ -15,7 +15,7 @@ if (window.ctEvents && window.ctEvents.default) {
/* Handles reloading the Items list */ /* Handles reloading the Items list */
document.dispatchEvent(new Event('TainacanReloadItemsListComponent')); document.dispatchEvent(new Event('TainacanReloadItemsListComponent'));
/* Handles updating Items carousel */ /* Handles updating Items carousel */
document.dispatchEvent(new Event('TainacanReloadCarouselItemsListBlock')); document.dispatchEvent(new Event('TainacanReloadCarouselItemsListBlock'));
}); });