Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
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
..
preferences Bug 22880: Convert opacheader system preference to news block 2020-02-24 13:24:12 +00:00
searchengine/elasticsearch Bug 20589: Add field boosting and use query_string fields parameter 2019-10-02 13:28:57 +01:00
additional-fields.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
admin-home.tt Bug 17702: Add UI to manage account credit types 2020-02-20 14:46:33 +00:00
adveditorshortcuts.tt
aqbudgetperiods.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
aqbudgets.tt Bug 11161: Relabel 'child fund' to 'sub fund' in staff interface 2020-02-21 16:00:29 +00:00
aqcontract.tt
aqplan.tt Bug 17016: (follow-up) Clear with 0.00 instead of blank (Use Price) 2020-03-02 10:37:18 +00:00
audio_alerts.tt
auth_subfields_structure.tt
auth_tag_structure.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
authorised_values.tt Bug 23853: Typo in authorised_values.tt 2019-10-29 12:17:44 +00:00
authtypes.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
biblio_framework.tt Bug 23398: Disable the XML import/export format for biblio framework 2019-11-08 12:51:16 +00:00
branch_transfer_limits.tt Bug 24747: Corrects on-screen instructions in branch transfer limits 2020-03-02 09:29:50 +00:00
branches.tt Bug 22661: TinyMCE/WYSIWYG editor doesn't translate 2019-11-03 07:39:54 +00:00
cash_registers.tt Bug 24395: Show initial float using the Price TT plugin on summary page 2020-01-20 14:03:49 +00:00
categories.tt Bug 23605: Fix terminology for branches limitations on patron category admin page 2019-09-23 10:40:38 +01:00
checkmarc.tt
cities.tt
classsources.tt
clone-rules.tt
columns_settings.tt
credit_types.tt Bug 17702: (RM follow-up) Remove use of I18N tt 2020-02-20 16:41:39 +00:00
currency.tt
debit_types.tt Bug 23354: (follow-up) Make display of debit types configurable 2020-01-13 14:05:14 +00:00
didyoumean.tt
edi_accounts.tt
edi_ean_accounts.tt
item_circulation_alerts.tt
items_search_field.tt
items_search_fields.tt
itemtypes.tt Bug 24291: Update the item type form text for library limitation field 2020-02-24 13:23:11 +00:00
koha2marclinks.tt
library_groups.tt Bug 21674: Prevent to insert twice the same library in a group 2020-01-30 15:36:25 +00:00
localization.tt Bug 23351: Clean up localization template 2019-10-02 13:53:28 +01:00
marc_subfields_structure.tt Bug 8643: Add important constraint to marc subfields 2020-02-11 14:33:29 +00:00
marctagstructure.tt Bug 24619: Phase out jquery.cookie.js: MARC Frameworks 2020-02-17 13:48:07 +00:00
matching-rules.tt Bug 23324: Add an ISBN normalization routine 2019-08-16 12:26:48 +01:00
oai_set_mappings.tt Bug 21520: QA Follow-up: do not build html tags with TT conditions 2020-01-15 13:50:09 +00:00
oai_sets.tt
overdrive.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
patron-attr-types.tt
preferences.tt Bug 24193: Add CodeMirror linting of JavaScript, CSS, HTML, and YAML 2020-03-02 10:44:14 +00:00
printers.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
share_content.tt Bug 23075: Correct indendation 2019-11-06 17:05:34 +00:00
smart-rules.tt Bug 24670: Fetch all circulation rules at once to fix perf regression 2020-02-20 08:41:30 +00:00
sms_providers.tt
sru_modmapping.tt
sru_modmapping_auth.tt
systempreferences.tt Bug 21574: Local use system preferences page doesn't have the system preferences menu 2019-11-26 11:43:57 +00:00
transport-cost-matrix.tt
usage_statistics.tt Bug 23866: Prompt for HEA configuration 2019-10-31 11:35:52 +00:00
z3950servers.tt Bug 11297: (QA follow-up) Make table headings match other pages 2020-02-19 16:08:00 +00:00