diff options
| author | bth-openerp <bth@tinyerp.com> | 2013-10-23 18:38:55 +0530 |
|---|---|---|
| committer | bth-openerp <bth@tinyerp.com> | 2013-10-23 18:38:55 +0530 |
| commit | 9efb55b0beb4e3c1bd2e4d6d0718b75d0cb9836d (patch) | |
| tree | f83ba56de1ffe854ee90755eab6c254f5ae202f0 /addons/website/static/src/js/website.tour.basic.js | |
| parent | c8d1d72a0b927047b3bc83b302c58051b087c13b (diff) | |
| parent | 7dd1934585ed85b925def0a686df04aa3990c5f5 (diff) | |
[MERGE]Merge trunk-website-al.
bzr revid: bth@tinyerp.com-20131023130855-6rt6rip6x1h04xc5
Diffstat (limited to 'addons/website/static/src/js/website.tour.basic.js')
| -rw-r--r-- | addons/website/static/src/js/website.tour.basic.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/addons/website/static/src/js/website.tour.basic.js b/addons/website/static/src/js/website.tour.basic.js index 82ad4790c25..876d2a7b5b9 100644 --- a/addons/website/static/src/js/website.tour.basic.js +++ b/addons/website/static/src/js/website.tour.basic.js @@ -10,6 +10,7 @@ name: "Insert a banner", init: function (editor) { var self = this; + var $body = $(document.body); self.steps = [ { stepId: 'welcome', @@ -56,15 +57,16 @@ onShow: function () { function beginDrag () { $('.popover.tour').remove(); - $('body').off('mousedown', beginDrag); function goToNextStep () { $('#oe_snippets').hide(); self.movetoStep('edit-title'); - $('body').off('mouseup', goToNextStep); + $body.off('mouseup', goToNextStep); } - $('body').on('mouseup', goToNextStep); + $body.off('mousedown', beginDrag); + $body.on('mouseup', goToNextStep); } - $('body').on('mousedown', beginDrag); + + $body.on('mousedown', beginDrag); }, }, { @@ -121,7 +123,7 @@ title: "Help is always available", content: "But you can always click here if you want more tutorials.", template: render('website.tour_popover', { end: "Close" }), - }, + } ]; return this._super(); }, @@ -158,4 +160,4 @@ }, }); -}());
\ No newline at end of file +}()); |
