Owl Carousel disappears after 1st time
I'm creating a JQM site and I've incorporated the Owl Carousel. I'm initializing it through the $(document).ready function as instructed on the Owl website.
$(document).ready(function() {
$("#event-slider").owlCarousel(
{
singleItem : true,
margin: 30
}
);
});
The carousel displays perfectly, however as soon as the user navigates away from the landing page and is returned to it with:
$(":mobile-pagecontainer").pagecontainer("change", "login.php");
the carousel is not displayed and will not come back until the page is refreshed. I have tried initializing the Carousel from a variety of events (pageinit, pageshow, etc) but I have been unable to resolve this problem.
I am a JQM newb so it is likely a basic misunderstanding of how the framework operates. Any assistance is greatly appreciated.