Ozzy47
Well-known member
So I have a addon that adds some JS to the message_macros template. This creates a slider of images that are loaded as thumbnails. It works as expected.
Now the issue I am facing is if you edit that post, no matter what you change in it, or changing nothing, once you save, the slider images are missing.
Once you do a page refresh, the slider works again. Here is the code I add to the message_macro template:
What can I do to make the slider work after editing the post?
Now the issue I am facing is if you edit that post, no matter what you change in it, or changing nothing, once you save, the slider images are missing.
Once you do a page refresh, the slider works again. Here is the code I add to the message_macro template:
HTML:
<xf:css src="lightslider.less" />
<xf:js src="vendor/lightslider/lightslider.js" min="1" />
<xf:js src="OzzModz/AttachEnhancment/slider/slider.js" />
<ul class="attachmentList" data-xf-init="item-slider" data-xf-item-slider='{"auto":{$xf.options.ozzmodz_attachenhancment_slider_auto},"loop":{{$xf.options.ozzmodz_attachenhancment_slider_loop?"true":"false"}},"pager":{$xf.options.ozzmodz_attachenhancment_slider_page},"item":{$xf.options.ozzmodz_attachenhancment_slider_item}}'>
What can I do to make the slider work after editing the post?
Last edited: