From 459bc6bae7a899414b49adc783a0fc5d26093a1d Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Sun, 5 Jul 2020 19:44:57 +0200 Subject: [PATCH] WebUI: Fix rendering of boolean_status_formatter With commit "WebUI: Apply jQuery patch to fix htmlPrefilter issue" (bc9f3e0557) jQuery's handling of self-closing elements. DOM before the above mentioned commit:
Enabled
and after:
Enabled
Explicitly closing the element fixes the issue:
Enabled
Fixes: https://pagure.io/freeipa/issue/8396 Reviewed-By: Alexander Bokovoy --- install/ui/src/freeipa/widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js index e737259b4..194870593 100644 --- a/install/ui/src/freeipa/widget.js +++ b/install/ui/src/freeipa/widget.js @@ -3109,7 +3109,7 @@ IPA.boolean_status_formatter = function(spec) { that.format = function(value) { var icon_cls = value ? that.enabled_icon : that.disabled_icon; var formatted_value = that.boolean_formatter_format(value); - formatted_value = ' '+formatted_value; + formatted_value = ' '+formatted_value; return formatted_value; };