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 Bug 18639: (follow-up) Populate replacement price from list price during ordering 2018-08-31 12:46:51 +00:00
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 Bug 22867: UniqueItemFields preference value should be pipe-delimited 2019-06-06 16:08:47 +01:00
addorderiso2709.js Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
admin-menu.js Bug 20931: JS error "ReferenceError: $ is not defined" when CircSidebar is turned on 2018-07-02 11:10:00 +00:00
ajax.js
audio_alerts.js
auth-finder-search.js Bug 20273: (follow-up) Autocomplete use start instead of contains 2018-07-19 17:25:16 +00:00
automatic_item_modification_by_age.js Bug 18752 - Automatic item modifications by age should allow 'blank' values 2017-06-13 16:21:37 -03:00
background-job-progressbar.js Bug 18707: Background jobs post disabled inputs 2019-07-15 11:27:59 +01:00
basket.js Bug 22023: (QA follow-up) Remove console.log used for debugging 2019-03-13 05:31:30 +00:00
basketgroup.js Bug 18432 : Follow up - Updating to use they/them 2017-04-21 10:56:43 -04:00
biblio_framework.js Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
cart.js Bug 22419: Records listed twice when select/unselect all from the cart 2019-03-07 20:53:28 +00:00
catalog.js Bug 21556: Deleting same record twice leads to fatal software error 2018-11-01 19:05:12 +00:00
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 Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
charts.js Bug 17282: Ability to create charts for SQL reports 2018-10-01 13:56:35 +00:00
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 Bug 22330: (QA follow-up) Enable datatable in patron search 2019-03-21 16:22:56 +00:00
commons.js Bug 19290: Browse selected bibliographic records - Staff interface 2018-02-19 16:13:30 -03:00
datatables.js Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
file-upload.js
funds_sorts.js Bug 15184: Prepare the ground - Move funds and sort fields autoupdate 2018-11-08 15:52:56 +00:00
holds.js Bug 21296: suspend hold ignores system preference on intranet 2020-01-20 14:03:50 +00:00
ill-list-table.js Bug 23529: (QA follow-up) Fix closing bracket, add label 2019-10-25 13:18:20 +01:00
item_search_fields.js
letter.js Bug 23278: Reopen last panel upon "Save and continue" in notices 2019-07-19 14:07:36 +01:00
localcovers.js Bug 19511: Local cover images not centered in table column in staff client search results 2018-08-21 12:48:36 +00:00
mana.js Bug 22249: Mana - Move comment process in a dedicated sub 2019-07-26 16:08:08 +01:00
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 Bug 23697: (follow-up) Add autocompletion search in patron module 2019-10-08 14:51:04 +01:00
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 Bug 22744: Changes for opac and remove JS 2019-09-23 11:57:46 +01:00
offlinecirc.js Bug 24545: (follow-up) Fix license statements 2020-02-24 13:31:27 +00:00
onboarding.js Bug 19514: Add client-side check 2017-12-14 16:58:13 -03:00
rotating-collections.js Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
serials-toolbar.js Bug 17047: SQL reports management with Mana-KB 2019-01-23 14:39:26 +00:00
showpredictionpattern.js Bug 19778: Move template JavaScript to the footer: Serials, part 4 2017-12-14 16:58:13 -03:00
sms_providers.js
staff-global.js Bug 21245: Move 'Last patron' button into 'breadcrumb' bar 2019-10-08 14:18:21 +01:00
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 Bug 11897: (QA follow-up) Update of tools-menu.js 2018-10-09 15:46:08 +00:00
xmlControlfield.js
z3950_search.js Bug 16072: Changing all instances of 'loading-small.gif' to 'spinner-small.gif' and removing loading-small.gif file. 2016-12-28 13:43:20 +00:00