The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 6d68e716 authored by Lionel Walter's avatar Lionel Walter Committed by Robert Lange
Browse files

Enclose the facet text with a span tag to support customization (#1373)

parent 7a6aded7
No related merge requests found
......@@ -26,8 +26,11 @@ function buildFacetNodes(data, currentPath, allowExclude, excludeTitle, counts)
$i.appendTo($item);
$item.append(' ');
}
var $description = $('<span/>')
.addClass('facet-value')
.append(this.displayText);
$item.append($description);
$item.append(this.displayText);
$item.appendTo($html);
if (!this.isApplied && counts) {
......
......@@ -25,6 +25,7 @@
} elseif (!empty($this->facet['value'])) {
$displayText = $this->escapeHtml($this->facet['value']);
}
$displayText = '<span class="facet-value">' . $displayText . '</span>';
if ($this->facet['operator'] == 'OR') {
$displayText =
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment