diff options
| author | Christophe Matthieu <chm@openerp.com> | 2013-11-27 17:59:14 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@openerp.com> | 2013-11-27 17:59:14 +0100 |
| commit | d1d1754ff47d4d60d45cbb58d3486e06fac2c17b (patch) | |
| tree | 528d778bb89e959572a3159d1ebe8b5aa129b0ff | |
| parent | b37be42fd68aa43c3072bb828a8e581c22c7d2d4 (diff) | |
[FIX] website snippet: background of quotes slider
bzr revid: chm@openerp.com-20131127165914-i4tgbj1fi1q2dqin
| -rw-r--r-- | addons/website/static/src/css/website.css | 2 | ||||
| -rw-r--r-- | addons/website/static/src/css/website.sass | 2 | ||||
| -rw-r--r-- | addons/website/static/src/js/website.snippets.editor.js | 4 | ||||
| -rw-r--r-- | addons/website/views/snippets.xml | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/addons/website/static/src/css/website.css b/addons/website/static/src/css/website.css index f10cb6f52e0..b5c176ee173 100644 --- a/addons/website/static/src/css/website.css +++ b/addons/website/static/src/css/website.css @@ -407,7 +407,7 @@ ul.nav-stacked > li > a { /* Parallax Theme */ .parallax_quote { - background: url("/website/static/src/img/parallax/quote.png") center center no-repeat fixed; + background: center center no-repeat fixed; background-size: contain; } .parallax_quote .carousel-indicators li { diff --git a/addons/website/static/src/css/website.sass b/addons/website/static/src/css/website.sass index 932f46a1912..fc309da3281 100644 --- a/addons/website/static/src/css/website.sass +++ b/addons/website/static/src/css/website.sass @@ -305,7 +305,7 @@ ul.nav-stacked > li > a /* Parallax Theme */ .parallax_quote - background: url('/website/static/src/img/parallax/quote.png') center center no-repeat fixed + background: center center no-repeat fixed background-size: contain .carousel-indicators li diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js index ac3c38a8278..e296850e54b 100644 --- a/addons/website/static/src/js/website.snippets.editor.js +++ b/addons/website/static/src/js/website.snippets.editor.js @@ -675,7 +675,7 @@ if (np.$next) { if (np.$next.hasClass("oe_custom_bg")) { var editor = new website.editor.ImageDialog(); - editor.on('start', self, function (o) {o.url = np.$prev && np.$prev.data("src") || "";}); + editor.on('start', self, function (o) {o.url = np.$prev && np.$prev.data("src") || np.$next && np.$next.data("src") || "";}); editor.on('save', self, function (o) { self._set_bg(o.url); np.$next.data("src", o.url); @@ -683,7 +683,6 @@ }); editor.on('cancel', self, function () { if (!np.$prev || np.$prev.data("src") === "") { - np.$next.removeClass('active'); self.$target.removeClass(np.$next.data("class")); self.$target.trigger("snippet-style-change", [self, np]); } @@ -694,6 +693,7 @@ } } else { this._set_bg(false); + this.$target.removeClass(np.$prev.data("class")); } }, preview: function (event, np) { diff --git a/addons/website/views/snippets.xml b/addons/website/views/snippets.xml index 97b770cbc83..23c87af79ee 100644 --- a/addons/website/views/snippets.xml +++ b/addons/website/views/snippets.xml @@ -663,7 +663,7 @@ <img class="oe_snippet_thumbnail_img" src="/website/static/src/img/blocks/block_quotes_slider.png"/> <span class="oe_snippet_thumbnail_title">Quotes Slider</span> </div> - <section class="oe_snippet_body parallax_quote oe_structure"> + <section class="oe_snippet_body parallax_quote oe_structure" style="background-image: url('/website/static/src/img/parallax/quote.png')"> <div id="myQuoteCarousel" class="carousel slide oe_medium mb32" data-snippet-id="carousel"> <!-- Indicators --> <ol class="carousel-indicators mb0"> @@ -804,7 +804,7 @@ <li data-class="oe_img_bg" data-src="/website/static/src/img/banner/yellow_green.jpg"><a>Yellow Green</a></li> </ul> </li> - <li class="oe_snippet_options divider"></li> + <li><a style="background: none; padding: 5px; border-top: 1px solid #ddd;"></a></li> <li class="oe_custom_bg" data-class="oe_img_bg"><a><b>Choose a photo...</b></a></li> </ul> </li> |
