[IMP] Better tour naming

bzr revid: ddm@openerp.com-20131115100651-jifmv37b36v0dyya
This commit is contained in:
ddm 2013-11-15 11:06:51 +01:00
parent bc5400c679
commit f449371223
3 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@
</record>
<record id="action_website_tutorial" model="ir.actions.act_url">
<field name="name">Website With Tutorial</field>
<field name="url">/?tutorial=true</field>
<field name="url">/?banner-tutorial=true</field>
<field name="target">self</field>
</record>

View File

@ -26,7 +26,7 @@
self.snippets.$button.removeClass("hidden");
website.snippet.stop_animation();
website.snippet.start_animation();
self.trigger('rte:snippets_ready');
self.trigger('tour:editor_bar_loaded');
});
return this._super.apply(this, arguments);

View File

@ -28,7 +28,7 @@
content: "Every page of your website can be modified through the <i>Edit</i> button.",
template: render('website.tour_popover'),
onShow: function () {
editor.on('rte:snippets_ready', editor, function() {
editor.on('tour:editor_bar_loaded', editor, function() {
self.movetoStep('add-block');
});
},
@ -148,7 +148,7 @@
});
menu.append($menuItem);
var url = new website.UrlParser(window.location.href);
if (url.search.indexOf('?tutorial=true') === 0 || bannerTour.startOfPart2()) {
if (url.search.indexOf('?banner-tutorial=true') === 0 || bannerTour.startOfPart2()) {
bannerTour.start();
}
return this._super();