[IMP] Tour code cleanup

bzr revid: ddm@openerp.com-20131120110757-lq4gnmxj9nf1e7p0
This commit is contained in:
ddm
2013-11-20 12:07:57 +01:00
parent e8858b02a6
commit c706db9b79
5 changed files with 1 additions and 6 deletions
@@ -18,7 +18,6 @@
startPath: '/page/website.homepage',
init: function (editor) {
var self = this;
var $body = $(document.body);
self.steps = [
{
stepId: 'welcome',
@@ -62,6 +61,7 @@
content: "Drag the Banner block and drop it in your page.",
template: render('website.tour_popover'),
onShow: function () {
var $body = $(document.body);
function beginDrag () {
$('.popover.tour').remove();
function goToNextStep () {
@@ -72,7 +72,6 @@
$body.off('mousedown', beginDrag);
$body.on('mouseup', goToNextStep);
}
$body.on('mousedown', beginDrag);
},
},
@@ -17,7 +17,6 @@
name: "Install a new App",
init: function (editor) {
var self = this;
var $body = $(document.body);
self.steps = [
{
stepId: 'welcome-install-app',
@@ -17,7 +17,6 @@
name: "Add a new page",
init: function (editor) {
var self = this;
var $body = $(document.body);
self.steps = [
{
stepId: 'welcome-menu-editor',
@@ -18,7 +18,6 @@
startPath: '/blog/cat/1/',
init: function (editor) {
var self = this;
var $body = $(document.body);
self.steps = [
{
stepId: 'welcome-blog',
@@ -18,7 +18,6 @@
startPath: '/shop',
init: function (editor) {
var self = this;
var $body = $(document.body);
self.steps = [
{
stepId: 'welcome-shop',