[FIX] website: banner is broken if more than one on a banner page
This commit is contained in:
@@ -975,12 +975,10 @@
|
||||
},
|
||||
clean_for_save: function () {
|
||||
this._super();
|
||||
$(".carousel").find(".item").removeClass("next prev left right active");
|
||||
this.$target.find(".item").removeClass("next prev left right active");
|
||||
this.$target.find(".item:first").addClass("active");
|
||||
this.$indicators.find('li').removeClass('active');
|
||||
this.$indicators.find('li:first').addClass('active');
|
||||
if(!this.$target.find(".item.active").length) {
|
||||
this.$target.find(".item:first").addClass("active");
|
||||
}
|
||||
},
|
||||
start : function () {
|
||||
var self = this;
|
||||
|
||||
Reference in New Issue
Block a user