[FIX] Event tour was broken by change
bzr revid: ddm@openerp.com-20131129113411-oy8zdxt97i14sawt
This commit is contained in:
parent
211ca68ae1
commit
2e732b5167
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue