Koha/koha-tmpl/intranet-tmpl/prog/en/includes/datatables.inc
Owen Leonard 0658d84732
Bug 22957: Remove type attribute from script tags: Staff client includes 1/2
This patch removes the "type" attribute from <script> tags in several
staff client include files. Also removed: Obsolete "//<![CDATA[ //]]>"
markers.

This patch also makes minor indentation changes, so diff using the "-w"
flag.

To test, apply the patch and confirm that examples of affected pages
work properly without any JavaScript errors in the browser console:

 - Acquisitions -> Vendor (uses acuisitions-toolbar.inc)
 - Acquisitions -> Vendor -> Add to basket -> From a new (empty) record
   (uses additem.js.inc)
 - Catalog -> Search results -> Bibliographic detail view. (uses
   browser-strings.inc, catalog-strings.inc, datatables.inc, and
   format_price.inc )
 - Tools -> Label creator -> Manage -> Label batches -> Export batch
   (uses greybox.inc)

Validating the HTML source of any of these pages should return no errors
related to the "type" attribute.

Signed-off-by: Nadine Pierre <nadine.pierre@inLibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-07-15 11:27:58 +01:00

31 lines
1.6 KiB
PHP

[% USE raw %]
[% USE Asset %]
[% INCLUDE 'format_price.inc' %]
[% Asset.js("lib/jquery/plugins/jquery.dataTables.min.js") | $raw %]
[% Asset.js("lib/jquery/plugins/dataTables.buttons.min.js") | $raw %]
[% Asset.js("lib/jquery/plugins/buttons.colVis.min.js") | $raw %]
[% Asset.js("lib/jquery/plugins/jszip.min.js") | $raw %]
[% Asset.js("lib/jquery/plugins/buttons.print.min.js") | $raw %]
[% Asset.js("lib/jquery/plugins/buttons.html5.min.js") | $raw %]
<script>
var MSG_DT_FIRST = _("First");
var MSG_DT_LAST = _("Last");
var MSG_DT_NEXT = _("Next");
var MSG_DT_PREVIOUS = _("Previous");
var MSG_DT_EMPTY_TABLE = _("No data available in table");
var MSG_DT_INFO = _("Showing _START_ to _END_ of _TOTAL_");
var MSG_DT_INFO_EMPTY = _("No entries to show");
var MSG_DT_INFO_FILTERED = _("(filtered from _MAX_ total entries)");
var MSG_DT_LENGTH_MENU = _("Show _MENU_ entries");
var MSG_DT_LOADING_RECORDS = _("Loading...");
var MSG_DT_PROCESSING = _("Processing...");
var MSG_DT_SEARCH = _("Search:");
var MSG_DT_ZERO_RECORDS = _("No matching records found");
var MSG_DT_ALL = _("All");
var CONFIG_EXCLUDE_ARTICLES_FROM_SORT = _("a an the");
var MSG_DT_COPY_TITLE = _("Copy to clipboard");
var MSG_DT_COPY_KEYS = _("Press ctrl or ⌘ + C to copy the table data<br>to your system clipboard.<br><br>To cancel, click this message or press escape.");
var MSG_DT_COPY_SUCCESS_ONE = _("Copied one row to clipboard");
var MSG_DT_COPY_SUCCESS_X = _("Copied %d rows to clipboard");
</script>
[% Asset.js("js/datatables.js") | $raw %]