Bugzilla – Attachment 165818 Details for
Bug 35138
Enable configuration of facets with Elasticsearch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35138: Fix delete button for newly added facet
Bug-35138-Fix-delete-button-for-newly-added-facet.patch (text/plain), 1.37 KB, created by
Jonathan Druart
on 2024-04-29 21:13:58 UTC
(
hide
)
Description:
Bug 35138: Fix delete button for newly added facet
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-04-29 21:13:58 UTC
Size:
1.37 KB
patch
obsolete
>From c5fff400ce842e93aca3584fb85f207088a62f77 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 29 Apr 2024 23:13:43 +0200 >Subject: [PATCH] Bug 35138: Fix delete button for newly added facet > >--- > koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js b/koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js >index 23cabf0bb61..bd01ad58ea3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/elasticsearch-mappings.js >@@ -177,7 +177,7 @@ $(document).ready(function () { > if (search_field_name.length > 0) { > const next_id = Math.max.apply(null, dt_data.map(row => row[0])) + 1; > const label = selected_option.data('label'); >- 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()] >+ 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')] > dt.row.add(new_line).draw(); > > clean_line(line); >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35138
:
163133
|
163680
|
163681
|
163682
|
163683
|
163684
|
163896
|
163897
|
163898
|
163899
|
163900
|
164811
|
164812
|
164813
|
164814
|
164815
|
164816
|
165811
|
165812
|
165813
|
165814
|
165815
|
165816
|
165817
| 165818 |
166402