Revision 74f9f871
Added by Andreas Kohlbecker almost 8 years ago
modules/cdm_dataportal/js/search_area_filter.js | ||
---|---|---|
156 | 156 |
var matching_label = $(this).find('.child-label'); |
157 | 157 |
var matching_snippet = matching_label.text().match(rexgexp); |
158 | 158 |
if(matching_snippet.length > 0){ |
159 |
// NOTE this will only hightlite the fist match in the string
|
|
159 |
// NOTE this will only highlite the first match in the string
|
|
160 | 160 |
matching_label.html(matching_label.text().replace(matching_snippet[0], '<span class="highlite">' + matching_snippet[0] + '</span>')); |
161 | 161 |
} |
162 | 162 |
}); |
Also available in: Unified diff
#5903 serving fontawesome icons directly from the portal module