View | Details | Raw Unified | Return to bug 35138
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js (-2 / +1 lines)
Lines 177-183 $(document).ready(function () { Link Here
177
        if (search_field_name.length > 0) {
177
        if (search_field_name.length > 0) {
178
            const next_id = Math.max.apply(null, dt_data.map(row => row[0])) + 1;
178
            const next_id = Math.max.apply(null, dt_data.map(row => row[0])) + 1;
179
            const label = selected_option.data('label');
179
            const label = selected_option.data('label');
180
            new_line = [next_id, search_field_name, '<span>%s</span><input type="hidden" name="facet_name" value="%s" />'.format(label.escapeHtml(), search_field_name.escapeHtml()), build_delete_link()]
180
            new_line = [next_id, search_field_name, '<span>%s</span><input type="hidden" name="facet_name" value="%s" />'.format(label.escapeHtml(), search_field_name.escapeHtml()), build_delete_link('delete-facet')]
181
            dt.row.add(new_line).draw();
181
            dt.row.add(new_line).draw();
182
182
183
            clean_line(line);
183
            clean_line(line);
184
- 

Return to bug 35138