Initial code after first saving generated slideshow code in database is ok. After changing some content around but not touching slideshow, slideshow code after 2nd savings have some duplicate tags.
After 2nd saving, duplicated divs are: ad-forward, ad-back, ad-info, ad-slideshow-controls ad-slideshow-running. The problem is that jquery.ad-gallery.min.js is generating that divs everytime when editing mode is turns, but old divs are saved when they were generated in frist time. And after every other savings divs are multiplying.
Initial code after first saving generated slideshow code in database is ok. After changing some content around but not touching slideshow, slideshow code after 2nd savings have some duplicate tags.
After 2nd saving, duplicated divs are: ad-forward, ad-back, ad-info, ad-slideshow-controls ad-slideshow-running. The problem is that jquery.ad-gallery.min.js is generating that divs everytime when editing mode is turns, but old divs are saved when they were generated in frist time. And after every other savings divs are multiplying.
Code of duplicated tags:
1 / 2
2 / 2