[FIX] Blog tour was broken by change

bzr revid: ddm@openerp.com-20131129130922-1l7m0gf9uy4br6rf
This commit is contained in:
ddm
2013-11-29 14:09:22 +01:00
parent 2e732b5167
commit 302a55e4fc
@@ -150,9 +150,14 @@
stepId: 'save-changes',
element: 'button[data-action=save]',
placement: 'right',
reflex: true,
title: "Save Your Blog",
content: "Click the <em>Save</em> 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();