Permalink
Browse files

🛡 web_website

  • Loading branch information...
GabbasovDinar committed Feb 1, 2019
1 parent be1cff7 commit 79080a8376162af5f27cbe3d98f2f4f77be874e9
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 79080a8

Please sign in to comment.