Skip to content
Permalink
Browse files

🛡 web_website

  • Loading branch information...
GabbasovDinar committed Feb 1, 2019
1 parent a207b69 commit 58d070ee8b413c968f0a65a111261d862e070fbe
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 58d070e

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.