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 Bug 28082: Add acquisitions toolbar to vendors on vendor search page 2022-05-10 15:17:17 -10:00
acquisitions-menu.js Bug 26019: Koha should set SameSite attribute on cookies 2022-04-13 15:55:38 +02:00
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 Bug 26019: (follow-up) Set SameSite attribute on Cart cookies 2022-04-13 15:55:38 +02:00
basketgroup.js
biblio_framework.js
browser.js
calendar.js Bug 30514: Error in date format check following datepicker removal 2022-05-06 10:33:10 -10:00
cart.js
cashup_modal.js Bug 27779: (QA follow-up) Better translatability 2022-08-09 07:36:58 -03:00
catalog.js
cataloging.js Bug 30376: Fix missing mandatory date acquired error on item save 2022-04-13 15:55:39 +02:00
cataloging_additem.js Bug 31234: SubfieldsToAllowForRestrictedEditing - data from drop-down menu not stored 2022-10-03 13:51:59 -03:00
categories.js Bug 30864: Add validation to password_expiry_days 2022-06-06 13:49:00 -03:00
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 Bug 30584: Fix ES mapping creation 2022-04-25 10:00:22 -10:00
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 Bug 29648: ILL - no change 2022-04-27 11:20:44 -10:00
ill-list-table.js Bug 29648: ILL - no change 2022-04-27 11:20:44 -10:00
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 Bug 30709: 'Insert' button in notices editor not adding selected placeholders to notice 2022-05-06 10:33:10 -10:00
localcovers.js
mana.js
marc_modification_templates.js Bug 29648: Fix occurrences of GetColumns 2022-04-27 11:20:45 -10:00
marc_subfields_structure.js Bug 30489: Convert MARC and authority subfield edit tabs to Bootstrap 2022-05-02 11:22:57 -10:00
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 Bug 26244: Move translatable strings out of memberentrygen.tt and into JavaScript 2022-04-12 11:40:17 +02:00
offlinecirc.js
onboarding.js
patron-autocomplete.js Bug 30578: Fix multi-terms search 2022-07-18 11:01:45 -03:00
patron-webcam.js
recalls.js
register_selection.js
resolve_claim_modal.js Bug 31085: Reload return claims table on resolve 2022-07-01 16:08:22 -03:00
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 Bug 30223: Move book cover image upload JS to a separate file 2022-04-19 21:25:51 -10:00
viewlog.js Bug 30578: Remove circ/ysearch.pl in favor of the /patrons REST API route 2022-07-18 11:01:34 -03:00
xmlControlfield.js
z3950_search.js