mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 00:31:56 -06:00
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>
This commit is contained in:
parent
af4ebaca62
commit
0fdbad1e1a
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user