summaryrefslogtreecommitdiff
path: root/addons/web_tour/static/src/js/tour_manager.js
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2017-11-29 14:39:42 +0100
committerAaron Bohy <aab@odoo.com>2018-01-16 20:49:19 +0100
commit9bee25a9df65f657fef0f2f32a7ad823fdc7d4e1 (patch)
treefa9b822f56409bf4006599294e6ce0742cbcd165 /addons/web_tour/static/src/js/tour_manager.js
parentde27eaa97161abb06c717a36b7ed68d6f36e4e73 (diff)
[REF] account,web(_tour): close rainbowman on click
This rev. makes the Rainbowman stop listening to event 'clear_uncommitted_changes' on core.bus, as this event is about to be removed (in a next commit). It was using it to destroy itself when such an event was triggered (basically, when the current view was left). Instead, we removed the option 'click_close' as, when set to true, which was the default, the rainbowman was destroyed as soon as the user clicked outside the raibowman.
Diffstat (limited to 'addons/web_tour/static/src/js/tour_manager.js')
-rw-r--r--addons/web_tour/static/src/js/tour_manager.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web_tour/static/src/js/tour_manager.js b/addons/web_tour/static/src/js/tour_manager.js
index 54f51f0bbc6..599e6c6b2f5 100644
--- a/addons/web_tour/static/src/js/tour_manager.js
+++ b/addons/web_tour/static/src/js/tour_manager.js
@@ -416,13 +416,13 @@ return core.Class.extend(mixins.EventDispatcherMixin, ServicesMixin, {
_consume_tour: function (tour_name, error) {
delete this.active_tooltips[tour_name];
//display rainbow at the end of any tour
- if (this.tours[tour_name].rainbowMan && this.running_tour !== tour_name
- && this.tours[tour_name].current_step === this.tours[tour_name].steps.length) {
+ if (this.tours[tour_name].rainbowMan && this.running_tour !== tour_name &&
+ this.tours[tour_name].current_step === this.tours[tour_name].steps.length) {
var $rainbow_message = $('<strong>' +
'<b>Good job!</b>' +
' You went through all steps of this tour.' +
'</strong>');
- new RainbowMan({message: $rainbow_message, click_close: false}).appendTo(this.$body);
+ new RainbowMan({message: $rainbow_message}).appendTo(this.$body);
}
this.tours[tour_name].current_step = 0;
local_storage.removeItem(get_step_key(tour_name));