diff options
| author | bth-openerp <bth@tinyerp.com> | 2013-11-11 15:19:34 +0530 |
|---|---|---|
| committer | bth-openerp <bth@tinyerp.com> | 2013-11-11 15:19:34 +0530 |
| commit | fbda16c26b6c75e368ef880e97a0bdfaa12a51a7 (patch) | |
| tree | 88cd7ddb744cfcb45e36c35a856fa2fbe6b76b1b /addons/website/static/src/js/website.tour.basic.js | |
| parent | 596da49accdac37f9cbd32a15233decb9eab7050 (diff) | |
| parent | 221c6b7dbd2ee6bfd334419ea3945f177103cd58 (diff) | |
[MERGE]Merge lp:~openerp-dev/openobject-addons/trunk-website-al.
bzr revid: bth@tinyerp.com-20131111094934-qh95bt41fptwepm0
Diffstat (limited to 'addons/website/static/src/js/website.tour.basic.js')
| -rw-r--r-- | addons/website/static/src/js/website.tour.basic.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/addons/website/static/src/js/website.tour.basic.js b/addons/website/static/src/js/website.tour.basic.js index 876d2a7b5b9..649317b8cfc 100644 --- a/addons/website/static/src/js/website.tour.basic.js +++ b/addons/website/static/src/js/website.tour.basic.js @@ -24,10 +24,14 @@ stepId: 'edit-page', element: 'button[data-action=edit]', placement: 'bottom', - reflex: true, title: "Edit this page", 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() { + self.movetoStep('add-block'); + }); + }, }, { stepId: 'add-block', @@ -37,11 +41,6 @@ content: "To add content in a page, you can insert building blocks.", template: render('website.tour_popover'), onShow: function () { - function refreshAddBlockStep () { - self.tour.showStep(self.indexOfStep('add-block')); - editor.off('rte:ready', editor, refreshAddBlockStep); - } - editor.on('rte:ready', editor, refreshAddBlockStep); $('button[data-action=snippet]').click(function () { self.movetoStep('drag-banner'); }); |
