I would like to be able to make changes to the current page's HTML, and then make those changes permanent by change a given carousel page's DOM. Attached is how I did it. If an update is ever made to this plugin, please add this method. PS. Thanks for a great plugin.
updatePageDOM: function() {
var $root = $(this.element),
data=$root.data("data");
//Note that data.paths[data.pageIndex] and data.pages[data.pageIndex][0] is the same
data.paths[data.pageIndex].html($root.find('div.slide').html());
},
I would like to be able to make changes to the current page's HTML, and then make those changes permanent by change a given carousel page's DOM. Attached is how I did it. If an update is ever made to this plugin, please add this method. PS. Thanks for a great plugin.
updatePageDOM: function() { var $root = $(this.element), data=$root.data("data"); //Note that data.paths[data.pageIndex] and data.pages[data.pageIndex][0] is the same data.paths[data.pageIndex].html($root.find('div.slide').html()); },