Skip to content

Commit

Permalink
[FIX] website: on adding a slide to slider, new slide is last on save
Browse files Browse the repository at this point in the history
Before, the new slide was set as first slide
Moreover, the indicators were not correct neither
  • Loading branch information
beledouxdenis committed Jun 5, 2014
1 parent 4b3cec8 commit 4b884ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addons/website/static/src/js/website.snippets.editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 4b884ed

Please sign in to comment.