[IMP] web_tour: remove consume button option in step content

This reverts commit 27158a0f612897e41601bf9e9d20861e9b87279f

Why keep a new option now that it has been developped ?

X-original-commit: bd4628e69df1e27498f88f348812a269cc9d3648
This commit is contained in:
Jeremy Kersten
2020-09-21 07:24:01 +00:00
parent a31e07a9ab
commit 1af84c99df
3 changed files with 0 additions and 21 deletions
-14
View File
@@ -14,7 +14,6 @@ var Tip = Widget.extend({
mouseenter: '_onMouseEnter',
mouseleave: '_onMouseLeave',
transitionend: '_onTransitionEnd',
'click .btn_consume_event': '_onNextStep',
},
/**
@@ -67,9 +66,6 @@ var Tip = Widget.extend({
this.is_anchor_fixed_position = this.$anchor.css("position") === "fixed";
if (this.info.optional === "true") {
this.info.content += "<button class='btn btn-link btn_consume_event'>" + _t('Next Step') + "</button>";
}
// The body never needs to have the o_tooltip_parent class. It is a
// safe place to put the tip in the DOM at initialization and be able
// to compute its dimensions and reposition it if required.
@@ -87,9 +83,6 @@ var Tip = Widget.extend({
this.scrollContentWidth = this.$tooltip_content.outerWidth(true);
this.scrollContentHeight = this.$tooltip_content.outerHeight(true);
this.$tooltip_content.html(this.info.content);
if (this.info.optional === "true") {
this.content_height += this.$tooltip_content.children('button').outerHeight() + 5; // +5 to add a small margin
}
this.$window = $(window);
this.$tooltip_content.css({
@@ -500,13 +493,6 @@ var Tip = Widget.extend({
// Handlers
//--------------------------------------------------------------------------
/**
* @private
*/
_onNextStep: function () {
this.trigger("tip_consumed");
this._unbind_anchor_events();
},
/**
* @private
*/
-6
View File
@@ -149,12 +149,6 @@
> p:last-child {
margin-bottom: 0;
}
.btn_consume_event {
position: absolute;
bottom: 5px;
right: 5px;
}
}
&.active {
@@ -163,7 +163,6 @@ function clickOnText(snippet, element, position = "bottom") {
position: position,
run: "text",
consumeEvent: "input",
optional: "true",
};
}