Koha/koha-tmpl/intranet-tmpl/prog/js
Thibaud Guillot a054207896 Bug 32016: Fix clear filter button behavior
For example, if you filter by global search input a datatable which saves its previous state when you want to return to this datatable, the backup is recovered in a cookie but the "clear filter" button is disabled because for it the input is empty, the verification of the recovery of the cookie not being made.

When loading I therefore added the verification of the cookie and if the search value is not empty then the button can be activated.

Test plan:

1) Be sure to have some orders and baskets which can be received
2) Go to 'cgi-bin/koha/acqui/booksellers.pl' and click on 'Receive
shipments'
3) Enter something in global search
4) Go to receive and cancel or save to be back on datatable
5) See that you cannot remove your previous input by the 'clear filter'
button
6) Apply this patch
7) Repeat steps 3) and 4)
8) See that now you can remove your search

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

https://bugs.koha-community.org/show_bug.cgi?id=31881
2022-11-04 19:01:56 -03:00
..
pages Bug 30487: Convert checkout and patron details page tabs to Bootstrap 2022-10-17 08:06:34 -03:00
acq.js
acquisitions-menu.js
additem.js Bug 23202: Fix screen freeze when ordereing several items 2022-08-17 09:23:10 -03:00
addorderiso2709.js Bug 30389: Switch to Bootstrap tabs on the page for adding orders from MARC file 2022-07-29 16:09:45 -03:00
admin-menu.js
ajax.js
audio_alerts.js
auth-finder-search.js
authorities-detail-modal.js Bug 31660: MARC preview for authority search results has hidden contents 2022-10-03 15:10:44 -03:00
authtype.js
automatic_item_modification_by_age.js
background-job-progressbar.js
basket.js
basketgroup.js
biblio_framework.js
browser.js
calendar.js
cart.js
cashup_modal.js Bug 27779: (QA follow-up) Better translatability 2022-08-09 07:36:58 -03:00
catalog.js
cataloging.js
cataloging_additem.js Bug 31234: SubfieldsToAllowForRestrictedEditing - data from drop-down menu not stored 2022-10-03 13:51:59 -03:00
categories.js
charts.js
checkout_renewals_modal.js Bug 23838: (QA follow-up) Move include files 2022-07-22 12:53:50 -03:00
checkouts.js Bug 31861: Table controls on checkouts table are buttons 2022-10-24 11:13:50 -03:00
datatables.js Bug 32016: Fix clear filter button behavior 2022-11-04 19:01:56 -03:00
desk_selection.js
elasticsearch-mappings.js
file-upload.js
funds_sorts.js
holds.js Bug 30487: Convert checkout and patron details page tabs to Bootstrap 2022-10-17 08:06:34 -03:00
ill-availability-partner.js
ill-availability.js
ill-list-table.js
item_search_fields.js
job_progess.js Bug 31666: (QA follow-up) Remove ES template literals 2022-10-05 16:08:20 -03:00
letter.js
localcovers.js
mana.js
marc_modification_templates.js
marc_subfields_structure.js
members-menu.js Bug 30952: Staff interface redesign (header) 2022-10-12 15:58:16 -03:00
members.js Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
merge-record.js
messaging-preference-form.js
offlinecirc.js
onboarding.js
patron-autocomplete.js
patron-webcam.js
recalls.js
register_selection.js
resolve_claim_modal.js
restrictiontypes.js Bug 23681: Add Management UI 2022-08-25 08:41:00 -03:00
rotating-collections.js
select2.js Bug 31646: Add Select2 focus to text search field 2022-10-11 10:16:35 -03:00
serials-toolbar.js
showpredictionpattern.js
sms_providers.js
staff-global.js Bug 30952: Staff interface redesign (header) 2022-10-12 15:58:16 -03:00
subscription-add.js Bug 26377: Simplify JS code 2022-07-20 09:56:24 -03:00
table_filters.js
tools-menu.js Bug 15326: Using AdditionalContents for custom pages on OPAC 2022-08-16 15:42:24 -03:00
upload-images.js
viewlog.js
xmlControlfield.js
z3950_search.js