Skip to content

Commit 641d58c

Browse files
committed
Minor fixes
1 parent f545fdb commit 641d58c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

js/ctcl-block.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,8 @@ registerBlockType('ctc-lite/ctc-lite-checkout-block', {
341341
setAttributes({contFormDis:false})
342342
},style: { backgroundColor: attributes.buttonColor, display:"inline-block", float:"left" }, className: 'ctcl-checkout-button' }, __("Back", 'ctc-lite')),
343343
el(Button, { style: { backgroundColor: attributes.buttonColor,display:"inline-block",float:"right" }, className: 'ctcl-checkout-button' }, __("Check Out", 'ctc-lite')),
344-
)
344+
),
345+
345346
),
346347
el(PluginSidebar, { name: 'ctcl-checkout', icon: 'store', title: __('Checkout page setting', 'ctc-lite') },
347348
el(PanelBody, null,
@@ -442,7 +443,9 @@ registerBlockType('ctc-lite/ctc-lite-checkout-block', {
442443

443444
el('button', { style: { backgroundColor: attributes.buttonColor, display:"inline-block", float:"left" }, className: 'ctcl-checkout-back', }, __("Back", 'ctc-lite') ),
444445
el('input', { type: 'submit', name: 'ctcl-checkout-button', style: { backgroundColor: attributes.buttonColor, display:"inline-block", float:"right" }, className: 'ctcl-checkout-button', value: __("Check Out", 'ctc-lite') }),
445-
),
446+
447+
),
448+
el('br',{}),
446449
),
447450
),
448451
)
@@ -584,7 +587,7 @@ registerBlockType('ctc-lite/ctcl-image-gallery', {
584587

585588

586589
},
587-
save: ({ attributes }) => el('div', { style:{height:attributes.mainImgHt+'px', width:attributes.mainImgWd+'px'}, className: 'ctcl-image-gallery' },
590+
save: ({ attributes }) => el('div', { style:{height:attributes.mainImgHt+'px', width:attributes.mainImgWd+'px',opacity:0}, className: 'ctcl-image-gallery', },
588591

589592
attributes.galItems.map((x, i) => el('img', { className: 'ctclg-gal-img', id: `ctclif-gal-img-${attributes.clntId}-${i}`, 'data-ts': `${attributes.clntId}`, 'data-image-num': `${i}`, key: i, title: x.caption, src: x.url }))),
590593

js/ctcl-frontend.js

+1
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,7 @@ new ctclImgGal('.ctcl-image-gallery',{
553553
imageEvent:'mouseover' ,
554554
callBack :(el)=>{
555555
document.querySelector('.ctclig-image-cont div').classList.add('ctcl-gal-cont')
556+
el.style.opacity = '1';
556557
setTimeout(()=>{new ctcOverlayViewer('.ctcl-gal-cont');},1000)
557558

558559
},

0 commit comments

Comments
 (0)