|
|
403b09 |
From 8163981ec3296c6768cacad2ac7382ae2c706853 Mon Sep 17 00:00:00 2001
|
|
|
403b09 |
From: Pavel Vomacka <pvomacka@redhat.com>
|
|
|
403b09 |
Date: Fri, 5 Aug 2016 14:04:03 +0200
|
|
|
403b09 |
Subject: [PATCH] Fix unicode characters in ca and domain adders
|
|
|
403b09 |
|
|
|
403b09 |
Topology graph didn't show plus icons correctly.
|
|
|
403b09 |
|
|
|
403b09 |
There is a problem with uglifying of javascript code. It does not leave unicode character
|
|
|
403b09 |
written in hexadecimal format unchanged. Therefore this workaround which inserts
|
|
|
403b09 |
needed character using Javascript function and uglifiyng does not affect it.
|
|
|
403b09 |
|
|
|
403b09 |
https://fedorahosted.org/freeipa/ticket/6175
|
|
|
403b09 |
|
|
|
403b09 |
Reviewed-By: Martin Basti <mbasti@redhat.com>
|
|
|
403b09 |
---
|
|
|
403b09 |
install/ui/src/freeipa/topology_graph.js | 4 +++-
|
|
|
403b09 |
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
403b09 |
|
|
|
403b09 |
diff --git a/install/ui/src/freeipa/topology_graph.js b/install/ui/src/freeipa/topology_graph.js
|
|
|
403b09 |
index ce2ebeaff611987ae27f2655b5da80bdcd1b4f8a..4bc3668647979c77719efa78b7a663d0e899216e 100644
|
|
|
403b09 |
--- a/install/ui/src/freeipa/topology_graph.js
|
|
|
403b09 |
+++ b/install/ui/src/freeipa/topology_graph.js
|
|
|
403b09 |
@@ -530,12 +530,14 @@ topology_graph.TopoGraph = declare([Evented], {
|
|
|
403b09 |
|
|
|
403b09 |
function add_labels(type, color, adder_group) {
|
|
|
403b09 |
var label_radius = 3;
|
|
|
403b09 |
+ var decimal_plus = parseInt('f067', 16); // Converts hexadecimal
|
|
|
403b09 |
+ // code of plus icon to decimal.
|
|
|
403b09 |
|
|
|
403b09 |
var plus = adder_group
|
|
|
403b09 |
.append('text')
|
|
|
403b09 |
.classed('plus', true)
|
|
|
403b09 |
.classed(type + '_plus', true)
|
|
|
403b09 |
- .text('\uf067');
|
|
|
403b09 |
+ .text(String.fromCharCode(decimal_plus));
|
|
|
403b09 |
|
|
|
403b09 |
var label = adder_group.append('path')
|
|
|
403b09 |
.attr('id', type + '_label');
|
|
|
403b09 |
--
|
|
|
403b09 |
2.7.4
|
|
|
403b09 |
|