This commit is contained in:
2025-09-25 03:03:31 +05:00
commit ae480cf2f6
2768 changed files with 1485826 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
theme.SortingCollections = (function() {
function SortingCollections(container) {
this.$container = $(container);
//var sectionId = this.$container.attr('data-section-id');
//this.settings = {};
this.namespace = '.sorting-collections';
this.onLoad();
};
SortingCollections.prototype = $.extend({}, Section.prototype, SortingCollections.prototype, {
onLoad: function() {
var $control = this.$container.find('[data-sorting-collections-control]'),
$products = this.$container.find('[data-sorting-collections-items]'),
xhr = null;
this.$control = $control;
if(theme.is_loaded) {
theme.ImagesLazyLoad.update();
theme.ProductReview.update();
}
},
onUnload: function() {
this.$container.off(this.namespace);
this.$control.off();
}
});
return SortingCollections;
})();
$(function() {
theme.sections.register('sorting-collections', theme.SortingCollections);
});