From 42ad338c070096dbcab7facb70e57ba6ea63535e Mon Sep 17 00:00:00 2001 From: Peter Keresztes Schmidt Date: Jul 06 2020 16:09:13 +0000 Subject: 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 --- diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js index e737259..1948705 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; };