Koha/koha-tmpl/intranet-tmpl/prog/js
Owen Leonard 08900d5653
Bug 24193: Add CodeMirror linting of JavaScript, CSS, HTML, and YAML
system preferences

This patch adds CodeMirror plugins for linting JS, CSS, HTML, and YAML.
When invalid data is entered in a linted CodeMirror editor an icon is
displayed in the editor's "gutter." Hovering over the icon displays the
error message.

This patch renames the minified CodeMirror JS file to match convention
but the version is unchanged.

To test, apply the patch and go to Administration -> System preferences.

Test preferences of each type and confirm that each type of CodeMirror
editor shows an error indicator if you entry invalid data. Valid data
should trigger no error indicator.

 - HTML: e.g.  OpacMainUserBlock,  opacheader. Enter invalid HTML, for
   example "<h1>Hello <h2>World</h2>."
   Example valid HTML: "<h1>Hello world</h1>"
 - JavaScript: e.g. OpacUserJS, IntranetUserJS. Example bad JS,
   "alert("Success!');"
   Example valid JS: "alert("Success!");"
 - CSS: e.g.  IntranetUserCSS, SCOUserCSS. Example bad CSS,
   "p { color blue }"
   Example valid CSS, "p { color: blue; }"
 - YAML: e.g. OpacHiddenItems. Example bad YAML:
   "one: two, three: four"
   Example valid YAML:
   "one: two
    three: four"

Also test that other CodeMirror instances still work correctly without
linting: The advanced MARC editor, SQL reports editing.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-03-02 10:44:14 +00:00
..
pages Bug 24193: Add CodeMirror linting of JavaScript, CSS, HTML, and YAML 2020-03-02 10:44:14 +00:00
acq.js
acquisitions-menu.js Bug 24347: Add a 'search to order' option similar to 'search to hold' 2020-01-30 10:58:03 +00:00
additem.js
addorderiso2709.js
admin-menu.js
ajax.js
audio_alerts.js
auth-finder-search.js
automatic_item_modification_by_age.js
background-job-progressbar.js
basket.js
basketgroup.js
biblio_framework.js
cart.js
catalog.js
cataloging.js Bug 15850: Correct eslint errors in cataloging.js 2020-02-17 10:45:23 +00:00
cataloging_additem.js Bug 8643: Add important constraint to marc subfields 2020-02-11 14:33:29 +00:00
categories.js
charts.js
checkouts.js Bug 24725: (QA follow-up) Add missing spaces between elements on claims tab 2020-03-02 09:49:56 +00:00
circ-patron-search-results.js
commons.js
datatables.js
file-upload.js
funds_sorts.js
holds.js Bug 21296: suspend hold ignores system preference on intranet 2020-01-20 14:03:50 +00:00
ill-list-table.js
item_search_fields.js
letter.js
localcovers.js
mana.js
marc_modification_templates.js Bug 22245: Allow copy/move from and to control fields 2020-02-19 11:28:56 +00:00
marc_subfields_structure.js Bug 10469: Display more when editing subfields in frameworks 2020-01-03 16:32:26 +00:00
members-menu.js
members.js Bug 24113: guarantor info lost when a duplicate is found 2019-11-27 07:51:04 +00:00
merge-record.js
messaging-preference-form.js
offlinecirc.js Bug 24545: (follow-up) Fix license statements 2020-02-24 13:31:27 +00:00
onboarding.js
rotating-collections.js
serials-toolbar.js
showpredictionpattern.js
sms_providers.js
staff-global.js
subscription-add.js Bug 24358: (bug 21232) Make the alert string translatable 2020-01-10 16:08:55 +00:00
table_filters.js Bug 24046: Untranslatable 'Activate filters' 2019-12-23 11:25:13 +00:00
tools-menu.js
xmlControlfield.js
z3950_search.js