From e58f42c1ff6401efe259e1123ed816400db0da28 Mon Sep 17 00:00:00 2001 From: Lari Taskula Date: Thu, 3 Mar 2022 02:47:16 +0000 Subject: [PATCH] Bug 30200: Update ill-list-table.js indentation To test: 1. git diff -w --word-diff-regex=[^[:space:]] HEAD~1 2. Observe no differences (above cmd ignores space changes) 3. Therefore patch only includes whitespace changes --- .../intranet-tmpl/prog/js/ill-list-table.js | 92 +++++++++---------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js index 55c978a8b3..67297d2a29 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js +++ b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js @@ -467,55 +467,55 @@ $(document).ready(function() { } var tab_data = spliceTabData($.extend(true, [], tab_data_copy), i); - // Initialise the datatable - table = KohaTable(illreq_tab_id, { - 'aoColumnDefs': [ - { // Last column shouldn't be sortable or searchable - 'aTargets': [ 'actions' ], - 'bSortable': false, - 'bSearchable': false - }, - { // When sorting 'placed', we want to use the - // unformatted column - 'aTargets': [ 'placed_formatted'], - 'iDataSort': 14 - }, - { // When sorting 'updated', we want to use the - // unformatted column - 'aTargets': [ 'updated_formatted'], - 'iDataSort': 16 - }, - { // When sorting 'completed', we want to use the - // unformatted column - 'aTargets': [ 'completed_formatted'], - 'iDataSort': 19 - } - ], - 'aaSorting': [[ 16, 'desc' ]], // Default sort, updated descending - 'processing': true, // Display a message when manipulating - 'sPaginationType': "full_numbers", // Pagination display - 'deferRender': true, // Improve performance on big datasets - 'data': tab_data, - "dom": '<"top pager"<"table_entries"ilp><"table_controls"B>>tr<"bottom pager"ip>', - 'columns': colData, - 'originalData': data, // Enable render functions to access - // our original data - 'initComplete': function() { - - // Prepare any filter elements that need it - for (var el in filterable) { - if (filterable.hasOwnProperty(el)) { - if (filterable[el].hasOwnProperty('prep')) { - filterable[el].prep(dataCopy, data); - } - if (filterable[el].hasOwnProperty('listener')) { - filterable[el].listener(); + // Initialise the datatable + table = KohaTable(illreq_tab_id, { + 'aoColumnDefs': [ + { // Last column shouldn't be sortable or searchable + 'aTargets': [ 'actions' ], + 'bSortable': false, + 'bSearchable': false + }, + { // When sorting 'placed', we want to use the + // unformatted column + 'aTargets': [ 'placed_formatted'], + 'iDataSort': 14 + }, + { // When sorting 'updated', we want to use the + // unformatted column + 'aTargets': [ 'updated_formatted'], + 'iDataSort': 16 + }, + { // When sorting 'completed', we want to use the + // unformatted column + 'aTargets': [ 'completed_formatted'], + 'iDataSort': 19 + } + ], + 'aaSorting': [[ 16, 'desc' ]], // Default sort, updated descending + 'processing': true, // Display a message when manipulating + 'sPaginationType': "full_numbers", // Pagination display + 'deferRender': true, // Improve performance on big datasets + 'data': tab_data, + "dom": '<"top pager"<"table_entries"ilp><"table_controls"B>>tr<"bottom pager"ip>', + 'columns': colData, + 'originalData': data, // Enable render functions to access + // our original data + 'initComplete': function() { + + // Prepare any filter elements that need it + for (var el in filterable) { + if (filterable.hasOwnProperty(el)) { + if (filterable[el].hasOwnProperty('prep')) { + filterable[el].prep(dataCopy, data); + } + if (filterable[el].hasOwnProperty('listener')) { + filterable[el].listener(); + } } } - } - } - }, columns_settings); + } + }, columns_settings); } // Custom date range filtering -- 2.25.1