[FIX] website: banner is broken if more than one on a banner page

This commit is contained in:
Christophe Matthieu
2014-07-11 14:06:33 +02:00
parent caa534e503
commit bd11d32694
@@ -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;