From e5f1cb5a4e09d6a046183344f6611e65d63dc649 Mon Sep 17 00:00:00 2001 From: "chm@openerp.com" <> Date: Fri, 7 Mar 2014 14:22:13 +0100 Subject: [PATCH] [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 --- .../website/static/src/js/website.snippets.editor.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js index 36030e8235b..ee07840b12d 100644 --- a/addons/website/static/src/js/website.snippets.editor.js +++ b/addons/website/static/src/js/website.snippets.editor.js @@ -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", "");