Skip to content
Permalink
Browse files

🛡 web_website

  • Loading branch information...
GabbasovDinar committed Feb 1, 2019
1 parent 8b43efe commit a364ea12c86df91e8b4cfc8ed0efd02ce768ebb6
Showing with 17 additions and 26 deletions.
  1. +17 −26 web_website/static/src/js/tour.js
@@ -3,31 +3,22 @@
odoo.define('web_website.tour', function(require) {
"use strict";

var tour = require("web_tour.tour");
var base = require("web_editor.base");

var options = {
test: true,
url: '/web#',
wait_for: base.ready()
};

var tour_name = 'web_website.tour';
tour.register(tour_name, options,
[
{
content: "Toggle Website Switcher",
trigger: '.o_switch_website_menu > a',
},
{
content: "Click Website localhost",
trigger: '.o_switch_website_menu a[data-website-id=1]',
},
{
content: "Wait when page is reloaded",
trigger: '.o_switch_website_menu > a:contains(Website localhost)',
},
]
);
var tour = require('web_tour.tour');
var base = require("web_editor.base");

tour.register('web_website.tour', {
url: "/web",
test: true,
wait_for: base.ready(),
}, [{
content: "Toggle Website Switcher",
trigger: '.navbar-right .o_switch_website_menu > a',
}, {
content: "Click Website localhost",
trigger: '.o_switch_website_menu a[data-website-id=1]',
}, {
content: "Wait when page is reloaded",
trigger: '.o_switch_website_menu > a:contains(Website localhost)',
},
]);
});

0 comments on commit a364ea1

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.