summaryrefslogtreecommitdiffstats
path: root/install/ui/src
diff options
context:
space:
mode:
authorPavel Vomacka <pvomacka@redhat.com>2016-08-05 14:04:03 +0200
committerMartin Basti <mbasti@redhat.com>2016-08-09 16:27:51 +0200
commit0fdbad1e1a146d7754e0f5377696a9341d50907b (patch)
tree2b28c49e5a14fc2a3ac19cdec4892651e24dad9d /install/ui/src
parentaf4ebaca6293779ef686c7bacffbc97945ebee95 (diff)
downloadfreeipa-0fdbad1e1a146d7754e0f5377696a9341d50907b.tar.gz
freeipa-0fdbad1e1a146d7754e0f5377696a9341d50907b.tar.xz
freeipa-0fdbad1e1a146d7754e0f5377696a9341d50907b.zip
Fix unicode characters in ca and domain adders
Topology graph didn't show plus icons correctly. There is a problem with uglifying of javascript code. It does not leave unicode character written in hexadecimal format unchanged. Therefore this workaround which inserts needed character using Javascript function and uglifiyng does not affect it. https://fedorahosted.org/freeipa/ticket/6175 Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'install/ui/src')
-rw-r--r--install/ui/src/freeipa/topology_graph.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/install/ui/src/freeipa/topology_graph.js b/install/ui/src/freeipa/topology_graph.js
index ce2ebeaff..4bc366864 100644
--- a/install/ui/src/freeipa/topology_graph.js
+++ b/install/ui/src/freeipa/topology_graph.js
@@ -530,12 +530,14 @@ topology_graph.TopoGraph = declare([Evented], {
function add_labels(type, color, adder_group) {
var label_radius = 3;
+ var decimal_plus = parseInt('f067', 16); // Converts hexadecimal
+ // code of plus icon to decimal.
var plus = adder_group
.append('text')
.classed('plus', true)
.classed(type + '_plus', true)
- .text('\uf067');
+ .text(String.fromCharCode(decimal_plus));
var label = adder_group.append('path')
.attr('id', type + '_label');