diff --git a/addons/website_blog/static/src/js/website.tour.blog.js b/addons/website_blog/static/src/js/website.tour.blog.js index 4b21a9608c4..dd0f2b1f583 100644 --- a/addons/website_blog/static/src/js/website.tour.blog.js +++ b/addons/website_blog/static/src/js/website.tour.blog.js @@ -150,9 +150,14 @@ stepId: 'save-changes', element: 'button[data-action=save]', placement: 'right', - reflex: true, title: "Save Your Blog", content: "Click the Save button to record changes on the page.", + triggers: function () { + var $publish = $('button.js_publish_btn'); + if ($publish.length > 0 && $publish.is(":visible")) { + self.moveToNextStep(); + } + }, }, { stepId: 'publish-post', @@ -174,7 +179,7 @@ return this._super(); }, resume: function () { - return (this.isCurrentStep('post-page') || this.isCurrentStep('publish-post')) && this._super(); + return (this.isCurrentStep('post-page') || this.isCurrentStep('save-changes')) && this._super(); }, trigger: function () { return (this.resume() && this.testUrl(/^\/blog\/[0-9]+\//)) || this._super();