diff --git a/addons/website/static/src/css/editor.css b/addons/website/static/src/css/editor.css index 9e363448103..0368995185d 100644 --- a/addons/website/static/src/css/editor.css +++ b/addons/website/static/src/css/editor.css @@ -564,18 +564,6 @@ table.editorbar-panel td.selected { -o-border-radius: 0.4em; border-radius: 0.4em; } -.oe_seo_configuration .keyword-in-title { - background-color: #5cb85cpointer; - color: white; -} -.oe_seo_configuration .keyword-in-description { - background-color: #428bca; - color: white; -} -.oe_seo_configuration .keyword-in-body { - background-color: #5bc0de; - color: white; -} /* ---- ACE EDITOR ---- */ .oe_ace_view_editor { @@ -634,6 +622,10 @@ table.editorbar-panel td.selected { } /* ---- EDITOR TOUR ---- */ +div.tour-backdrop { + z-index: 2009; +} + .popover.tour { z-index: 2010; } diff --git a/addons/website/static/src/css/editor.sass b/addons/website/static/src/css/editor.sass index 6eab4f6fb32..26838496cc8 100644 --- a/addons/website/static/src/css/editor.sass +++ b/addons/website/static/src/css/editor.sass @@ -479,7 +479,8 @@ $navbar_height: 51px +opacity(0) /* ---- EDITOR TOUR ---- */ - +div.tour-backdrop + z-index: 2009 .popover.tour z-index: 2010 // vim:tabstop=4:shiftwidth=4:softtabstop=4:fdm=marker: diff --git a/addons/website/static/src/js/website.tour.js b/addons/website/static/src/js/website.tour.js index b2ca10141fc..cfb2dd72007 100644 --- a/addons/website/static/src/js/website.tour.js +++ b/addons/website/static/src/js/website.tour.js @@ -26,6 +26,7 @@ reset: function () { this.tourStorage.removeItem(this.id+'_current_step'); this.tourStorage.removeItem(this.id+'_end'); + this.tour._current = 0; $('.popover.tour').remove(); }, start: function () { @@ -34,7 +35,7 @@ } }, canResume: function () { - return this.currentStepIndex() === 0 && !this.tour.ended(); + return (this.currentStepIndex() === 0) && !this.tour.ended(); }, currentStepIndex: function () { var index = this.tourStorage.getItem(this.id+'_current_step') || 0; @@ -91,8 +92,9 @@ { stepId: 'add-banner', orphan: true, + backdrop: true, title: "Now, let's add a banner", - content: "Let's add a banner on the top of the page to make your homepage look more attractive.", + content: "Let's add a banner on the top of the page to make your homepage more attractive.", template: render('website.tour_confirm', { next: "Continue" }), }, { @@ -130,8 +132,8 @@ element: '#wrap [data-snippet-id=carousel]:first .carousel-caption', placement: 'top', title: "Set your Banner text", - content: "Click on the text to start modifying it then click Done to continue the tutorial.
You can also use the options of the top menubar to change the look of the banner. ", - template: render('website.tour_confirm', { next: "Done" }), + content: "Click on the text to start modifying it then click Continue to continue the tutorial.
You can also use the options of the top menubar to change the look of the banner. ", + template: render('website.tour_confirm', { next: "Continue" }), onHide: function () { var $banner = $("#wrap [data-snippet-id=carousel]:first"); if ($banner.length) { @@ -144,8 +146,8 @@ element: '.oe_overlay_options .oe_options', placement: 'left', title: "Customize your new Banner style", - content: "Click on Customize and change the background of your banner.", - template: render('website.tour_confirm', { next: "Not now" }), + content: "Click on Customize and change the background of your banner.
If your are satisfied with the current background, just click Continue.", + template: render('website.tour_confirm', { next: "Continue" }), onShow: function () { $('.dropdown-menu [name=carousel-background]').click(function () { self.movetoStep('save-changes'); @@ -168,6 +170,7 @@ { stepId: 'part-2', orphan: true, + backdrop: true, title: "Congratutaltions!", content: "Congratulations on your first modifications.", template: render('website.tour_confirm', { next: "OK" }), @@ -226,6 +229,10 @@ if (url.search === '?tutorial=true' || website.tutorials.basic.startOfPart2()) { website.tutorials.basic.start(); } + $('.tour-backdrop').click(function (e) { + e.stopImmediatePropagation(); + e.preventDefault(); + }); return this._super(); }, }); diff --git a/addons/website/static/src/xml/website.tour.xml b/addons/website/static/src/xml/website.tour.xml index 6d2ef140610..b9398340983 100644 --- a/addons/website/static/src/xml/website.tour.xml +++ b/addons/website/static/src/xml/website.tour.xml @@ -13,7 +13,7 @@

@@ -23,7 +23,7 @@

@@ -33,8 +33,8 @@