From ddb65ce339a8bc9145bb9a2d999ea6350ab28d8c Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 1 Oct 2013 13:34:29 +0200 Subject: [PATCH] [FIX] forgot to move image_style initialization bzr revid: xmo@openerp.com-20131001113429-tc6qgigsxvgbtxnc --- addons/website/static/src/js/website.editor.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/addons/website/static/src/js/website.editor.js b/addons/website/static/src/js/website.editor.js index c91c1c6920a..091ad933e74 100644 --- a/addons/website/static/src/js/website.editor.js +++ b/addons/website/static/src/js/website.editor.js @@ -704,6 +704,9 @@ }), start: function () { + var $options = this.$('.image-style').children(); + this.image_styles = $options.map(function () { return this.value; }).get(); + var o = { url: null, style: null, }; // avoid typos, prevent addition of new properties to the object Object.preventExtensions(o); @@ -783,10 +786,6 @@ var el = selection && selection.getSelectedElement(); this.element = null; - var $select = this.$('.image-style'); - var $options = $select.children(); - this.image_styles = $options.map(function () { return this.value; }).get(); - if (el && el.is('img')) { this.element = el; _(this.image_styles).each(function (style) {