diff options
| author | qsm-odoo <qsm@odoo.com> | 2016-05-24 17:47:14 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2016-07-04 17:24:00 +0200 |
| commit | c12f2cd5ccc72a680ab741b4ce16d3913dd3854e (patch) | |
| tree | 3e2580dd29dd1bf99eb81b346dea14a243e6acfd /addons/website/static/src/js/website.snippets.editor.js | |
| parent | b309f3ab543b5195eedc5b06ad08cfa81f43171a (diff) | |
[REF] web_editor,website(_*): snippets
Refactor snippet structure
* new "cover" snippet
* move the title out of col-md-12
* delete snippets (s_quote_slider)
* rename snippets (FAQ Roller -> Accordion)
* ...
Refactor the way the background images are handled so that themes
can customize the defaults ones easily without ugly xpath or ugly
css.
Diffstat (limited to 'addons/website/static/src/js/website.snippets.editor.js')
| -rw-r--r-- | addons/website/static/src/js/website.snippets.editor.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js index 8afcab6b506..6bf0e805fec 100644 --- a/addons/website/static/src/js/website.snippets.editor.js +++ b/addons/website/static/src/js/website.snippets.editor.js @@ -147,7 +147,10 @@ options.registry.carousel = options.registry.slider.extend({ this.$target.on('slid.bs.carousel', function () { if(self.editor && self.editor.styles.background) { self.editor.styles.background.$target = self.$target.find(".item.active"); + self.editor.styles.background_position.$target = self.editor.styles.background.$target; self.editor.styles.background.set_active(); + self.editor.styles.background_position.set_active(); + self.editor.styles.background.$target.trigger("snippet-option-change", [self.editor.styles.background]); } self.$target.carousel("pause"); }); |
