From 2b93814fb1f7cc044fe5903b97c2d27d56fd6439 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Fri, 26 Mar 2021 09:11:01 +0100 Subject: [PATCH] Add context inside scope: used to specify display - Context is used to customize some CSS specifications as sometimes display can be different (depending on the context) - variant variable was not used: copy/paste error --- .../shared/directives/question_mark_tooltip.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/shared/directives/question_mark_tooltip.js.coffee b/app/assets/javascripts/shared/directives/question_mark_tooltip.js.coffee index 6fa2d46ee5..3b5793d379 100644 --- a/app/assets/javascripts/shared/directives/question_mark_tooltip.js.coffee +++ b/app/assets/javascripts/shared/directives/question_mark_tooltip.js.coffee @@ -4,7 +4,7 @@ OFNShared.directive "questionMarkWithTooltip", ($tooltip)-> # Subsequently we patch the scope, template and restrictions tooltip = $tooltip 'questionMarkWithTooltip', 'questionMarkWithTooltip', 'click' tooltip.scope = - variant: "=" + context: "=" key: "=" tooltip.templateUrl = "shared/question_mark_with_tooltip_icon.html" tooltip.replace = true