summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.snippets.editor.js
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2014-07-11 14:06:33 +0200
committerChristophe Matthieu <chm@odoo.com>2014-07-11 14:06:33 +0200
commitbd11d326940cc629372e8e9b9a6bbf47fa3388e2 (patch)
tree9266a114358cd332795df8b169ddb92b77a5351f /addons/website/static/src/js/website.snippets.editor.js
parentcaa534e503b733bb4779a51ae5e12ccce095be2e (diff)
[FIX] website: banner is broken if more than one on a banner page
Diffstat (limited to 'addons/website/static/src/js/website.snippets.editor.js')
-rw-r--r--addons/website/static/src/js/website.snippets.editor.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js
index 61a60b2b0c5..16304f95d01 100644
--- a/addons/website/static/src/js/website.snippets.editor.js
+++ b/addons/website/static/src/js/website.snippets.editor.js
@@ -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;