Koha/koha-tmpl/intranet-tmpl/prog/js
Lucas Gass 5e3ae14aa0
Bug 35718: Remove ES6 warns from JS system preferences
To test:
1. Add some JS like this to any of the UserJS system preferences:

$(document).ready( function() {
    let something = 1;
    const another_thing = 2;

    let an_arrow_function = (a, b) => a + b;
    console.log( an_arrow_function(something, another_thing) );
});

2. Notice the icons and warnings to the left of the line numbers:

let is available in ES6
const is available in ES6
arrow_function_syntax is available in ES6

3. APPLY PATCH
4. Try steps 1 and 2 again, the warnings should be gone.
5. Check that the JavaScript still works, in my example it should console.log 3.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-03-08 18:58:22 +01:00
..
fetch Bug 36084: svc - renew 2024-03-01 11:00:58 +01:00
modals Bug 36005: Fixed typo in "Your concern was successfully submitted." text 2024-03-08 18:58:21 +01:00
pages Bug 35718: Remove ES6 warns from JS system preferences 2024-03-08 18:58:22 +01:00
vue Bug 35329: Move patron search to modal - erm 2024-03-01 11:01:13 +01:00
acq.js
acquisitions-menu.js
additem.js
addorderiso2709.js
admin-menu.js
ajax.js
audio_alerts.js Bug 34478: Manual fix - audio alerts 2024-03-01 10:59:02 +01:00
auth-finder-search.js
authorities-detail-modal.js
authtype.js
automatic_item_modification_by_age.js
basket.js
biblio_framework.js
browser.js
calendar.js
cancel_booking_modal.js
cart.js Bug 34478: SQUASH Follow-up to previous batch operations patches 2024-03-01 11:00:05 +01:00
cashup_modal.js
catalog.js Bug 34478: Fix delete from addbiblio 2024-03-01 11:00:20 +01:00
cataloging.js Bug 35554: Authority search popup width 800px 2024-03-07 15:02:50 +01:00
cataloging_additem.js Bug 34478: Fix saveitem and delete for additem 2024-03-01 11:00:18 +01:00
categories.js
charts.js
checkout_renewals_modal.js
checkouts.js Bug 36084: svc - renew 2024-03-01 11:00:58 +01:00
cookieconsent.js
datatables.js
desk_selection.js
elasticsearch-mappings.js
file-upload.js Bug 36084: Fix file upload and www/batch.t 2024-03-01 11:01:01 +01:00
funds_sorts.js
holds.js Bug 34478: Manual fix - change links to JS form submission - change action to op - request.pl/.tt 2024-03-01 10:59:09 +01:00
ill-availability-partner.js
ill-availability.js
ill-batch-modal.js
ill-batch-table.js
ill-batch.js
ill-list-table.js
item_search_fields.js
job_progress.js
letter.js
localcovers.js
mana.js Bug 36084: svc - mana 2024-03-01 11:01:01 +01:00
marc_modification_templates.js Bug 34478: Fixes for MARC modification template management 2024-03-01 11:00:05 +01:00
marc_subfields_structure.js
members-menu.js
members-patron-selections.js
members.js Bug 35329: move patron search to modal - Add guarantor 2024-03-01 11:01:08 +01:00
merge-record.js
messaging-preference-form.js
modal_printer.js
onboarding.js
patron-webcam.js
place_booking_modal.js
recalls.js Bug 36084: svc - recall 2024-03-01 11:00:57 +01:00
register_selection.js
resolve_claim_modal.js
restrictiontypes.js
rotating-collections.js Bug 34478: Item removal deletion should be POSTed form 2024-03-01 10:59:39 +01:00
select2.js
serials-toolbar.js Bug 34478: Adjust 'op' on serials/subscription-renew 2024-03-01 11:00:16 +01:00
showpredictionpattern.js
sms_providers.js Bug 34478: Correct op value for SMS provider deletion 2024-03-01 10:59:35 +01:00
staff-global.js
subscription-add.js Bug 36084: svc - mana 2024-03-01 11:01:01 +01:00
table_filters.js
tools-menu.js
upload-images.js Bug 36084: svc - cover_images 2024-03-01 11:00:52 +01:00
viewlog.js
xmlControlfield.js
z3950_search.js