[FIX] website: on adding a slide to slider, new slide is last on save
Before, the new slide was set as first slide Moreover, the indicators were not correct neither
This commit is contained in:
parent
4b3cec8ecf
commit
4b884ed100
|
@ -1299,7 +1299,9 @@
|
|||
},
|
||||
clean_for_save: function () {
|
||||
this._super();
|
||||
this.$target.find(".item").removeClass("next prev left right");
|
||||
this.$target.find(".item").removeClass("next prev left right 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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue