[FIX] website snippet: carousel

bzr revid: chm@openerp.com-20131125093056-7rvp01yvy63evejp
This commit is contained in:
Christophe Matthieu 2013-11-25 10:30:56 +01:00
parent a205becbd1
commit 4456594d40
2 changed files with 3 additions and 2 deletions

View File

@ -53,7 +53,7 @@
website.snippet.animationRegistry.carousel = website.snippet.Animation.extend({
start: function () {
this.$target.carousel({interval: false});
this.$target.carousel({interval: 10000});
},
});

View File

@ -1125,7 +1125,8 @@
id = _id + 1;
}
});
this.$target.attr("id", "myCarousel" + id);
this.id = "myCarousel" + id;
this.$target.attr("id", this.id);
this.$target.find(".carousel-control").attr("href", "#myCarousel" + id);
this.$target.find("[data-target='#myCarousel']").attr("data-target", "#myCarousel" + id);