summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.tour.menu-editor.js
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website/static/src/js/website.tour.menu-editor.js')
-rw-r--r--addons/website/static/src/js/website.tour.menu-editor.js115
1 files changed, 0 insertions, 115 deletions
diff --git a/addons/website/static/src/js/website.tour.menu-editor.js b/addons/website/static/src/js/website.tour.menu-editor.js
deleted file mode 100644
index ede81025d9c..00000000000
--- a/addons/website/static/src/js/website.tour.menu-editor.js
+++ /dev/null
@@ -1,115 +0,0 @@
-(function () {
- 'use strict';
-
- var website = openerp.website;
-
- var render = website.tour.render;
-
- website.EditorBuilderTour = website.EditorTour.extend({
- id: 'menu_editor',
- name: "Add a new page",
- init: function (editor) {
- var self = this;
- var $body = $(document.body);
- self.steps = [
- {
- stepId: 'welcome-menu-editor',
- orphan: true,
- backdrop: true,
- title: "Menu editor",
- content: "We will show how to edit your website's menu.",
- template: render('website.tour_popover', { next: "Start Tutorial", end: "Skip It" }),
- },
- {
- stepId: 'content-menu',
- element: '#content-menu-button',
- placement: 'left',
- reflex: true,
- title: "Edit the content",
- content: "Click here to edit the menu.",
- template: render('website.tour_popover'),
- },
- {
- stepId: 'edit-entry',
- element: 'a[data-action=edit-structure]',
- placement: 'left',
- title: "Edit menu",
- content: "Click here to create a new menu entry and manage options.",
- template: render('website.tour_popover'),
- onShow: function () {
- editor.on('tour:menu_editor_dialog_ready', editor, function() {
- self.movetoStep('add-menu-entry');
- });
- },
- },
- {
- stepId: 'add-menu-entry',
- element: 'a.js_add_menu',
- placement: 'left',
- title: "Add menu entry",
- content: "Click here to create a new menu entry.",
- template: render('website.tour_popover'),
- onShow: function () {
- editor.on('tour:new_menu_entry_dialog_ready', editor, function() {
- self.movetoStep('enter-entry-name');
- });
- },
- },
- {
- stepId: 'enter-entry-name',
- element: '#link-text',
- placement: 'left',
- title: "Choose a label",
- content: "This label will appear in the top menu and will be visible by all your audience.\nGive a meaningful name to help your visitors. For instance, 'Photos Gallery'.",
- template: render('website.tour_popover', { next: "Continue" }),
- },
- {
- stepId: 'enter-page-name',
- element: '#link-new',
- placement: 'left',
- title: "Link your menu to a 'gallery' page",
- content: "This page does not exist. Create it by filling the name here. For instance, 'gallery'.",
- template: render('website.tour_popover', { next: "Continue" }),
- },
- {
- stepId: 'save-page',
- element: '.modal-footer:last button.btn-primary',
- placement: 'right',
- title: "Save the page",
- content: "Save your new page.",
- template: render('website.tour_popover'),
- onShow: function () {
- editor.on('tour:new_menu_entry_dialog_closed', editor, function () {
- self.movetoStep('save-menu');
- });
- },
- },
- {
- stepId: 'save-menu',
- element: '.modal-footer button.btn-primary',
- placement: 'right',
- reflex: true,
- title: "Save the menu",
- content: "Save the menu to edit the Gallery content directly from the interface.",
- template: render('website.tour_popover'),
- },
- ];
- return this._super();
- },
- });
-
- website.EditorBar.include({
- start: function () {
- var menu = $('#help-menu');
- var builderTour = new website.EditorBuilderTour(this);
- var $menuItem = $($.parseHTML('<li><a href="#">'+builderTour.name+'</a></li>'));
- $menuItem.click(function () {
- builderTour.reset();
- builderTour.start();
- });
- menu.append($menuItem);
- return this._super();
- },
- });
-
-}());