From 2e732b516751c4c181480150a0ee2ff6a6e589ec Mon Sep 17 00:00:00 2001 From: ddm Date: Fri, 29 Nov 2013 12:34:11 +0100 Subject: [PATCH] [FIX] Event tour was broken by change bzr revid: ddm@openerp.com-20131129113411-oy8zdxt97i14sawt --- addons/website_event/static/src/js/website.tour.event.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/addons/website_event/static/src/js/website.tour.event.js b/addons/website_event/static/src/js/website.tour.event.js index 25eda031694..73152fa4b66 100644 --- a/addons/website_event/static/src/js/website.tour.event.js +++ b/addons/website_event/static/src/js/website.tour.event.js @@ -141,9 +141,14 @@ stepId: 'save-changes', element: 'button[data-action=save]', placement: 'right', - reflex: true, title: "Save your modifications", content: "Once you click on save, your event is updated.", + triggers: function () { + var $publish = $('button.js_publish_btn'); + if ($publish.length > 0 && $publish.is(":visible")) { + self.moveToNextStep(); + } + }, }, { stepId: 'publish-event', @@ -173,7 +178,7 @@ return this._super(); }, resume: function () { - return (this.isCurrentStep('event-page') || this.isCurrentStep('publish-event')) && this._super(); + return (this.isCurrentStep('event-page') || this.isCurrentStep('save-changes')) && this._super(); }, trigger: function () { return (this.resume() && this.testUrl(/^\/event\/[0-9]+\/register/)) || this._super();