From 36966d140ff3798cacd3b7574c110f7f20383281 Mon Sep 17 00:00:00 2001 From: ddm Date: Fri, 29 Nov 2013 14:15:29 +0100 Subject: [PATCH] [FIX] Shop tour was broken by change bzr revid: ddm@openerp.com-20131129131529-seqk3hypzcka8qxi --- addons/website_sale/static/src/js/website.tour.shop.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/addons/website_sale/static/src/js/website.tour.shop.js b/addons/website_sale/static/src/js/website.tour.shop.js index a8d74eb3be9..ad65f34ce9c 100644 --- a/addons/website_sale/static/src/js/website.tour.shop.js +++ b/addons/website_sale/static/src/js/website.tour.shop.js @@ -130,9 +130,15 @@ stepId: 'save-changes', element: 'button[data-action=save]', placement: 'right', - reflex: true, title: "Save your modifications", content: "Once you click on save, your product is updated.", + triggers: function () { + var $publish = $('button.js_publish_btn'); + if ($publish.length > 0 && $publish.is(":visible")) { + self.moveToNextStep(); + } + }, + }, { stepId: 'publish-product', @@ -146,7 +152,7 @@ return this._super(); }, resume: function () { - return (this.isCurrentStep('product-page') || this.isCurrentStep('publish-product')) && this._super(); + return (this.isCurrentStep('product-page') || this.isCurrentStep('save-changes')) && this._super(); }, trigger: function () { return (this.resume() && this.testUrl(/^\/shop\/product\/[0-9]+\//)) || this._super();