[FIX] website: allow fixed size of a slider with 3 slides of distinct size => add resize option on slider

bzr revid: chm@openerp.com-20140307132213-tg3jl2mybbpd0kg3
This commit is contained in:
chm@openerp.com
2014-03-07 14:22:13 +01:00
parent 9f23642476
commit e5f1cb5a4e
@@ -1282,6 +1282,11 @@
});
website.snippet.editorRegistry.slider = website.snippet.editorRegistry.resize.extend({
getSize: function () {
this.grid = this._super();
this.grid.size = 8;
return this.grid;
},
drop_and_build_snippet: function() {
var id = $(".carousel").length;
this.id = "myCarousel" + id;
@@ -1369,11 +1374,6 @@
});
website.snippet.editorRegistry.carousel = website.snippet.editorRegistry.slider.extend({
getSize: function () {
this.grid = this._super();
this.grid.size = 8;
return this.grid;
},
clean_for_save: function () {
this._super();
this.$target.css("background-image", "");