[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:
Denis Ledoux 2014-06-05 18:58:01 +02:00
parent 4b3cec8ecf
commit 4b884ed100
1 changed files with 3 additions and 1 deletions

View File

@ -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");
}