From 4b884ed100f3d04fc7aec35f6f4943ae847a989d Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Thu, 5 Jun 2014 18:58:01 +0200 Subject: [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 --- addons/website/static/src/js/website.snippets.editor.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'addons/website/static/src/js/website.snippets.editor.js') diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js index dca134deadb..858ab989dca 100644 --- a/addons/website/static/src/js/website.snippets.editor.js +++ b/addons/website/static/src/js/website.snippets.editor.js @@ -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"); } -- cgit v1.2.3