From 4add0cbc2d6c3aec6e71d6148ed86cc2e811d1ef Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 22 Feb 2021 15:44:54 +0000 Subject: [PATCH] Bug 27752: Correct eslint errors in batchMod.js This patch makes minor changes to batchMod.js in order to address errors raised by ESLint. These changes include whitespace changes, so diff accordingly. To test, apply the patch and go to Tools -> Batch item modification. - Submit a batch of barcodes for modification. - Uncheck some checkboxes to hide columns in the table showing your submitted items. - Return to the batch item modification page and submit your batch again. - The columns you selected should still be hidden. - Submit a batch of items for deletion. - The same columns should be hidden here too. To confirm that ESLint is happy with the changes you could open the file for editing using an editor with ESLint integration, or install ESLint on the command line: https://eslint.org/docs/user-guide/command-line-interface Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- .../intranet-tmpl/prog/js/pages/batchMod.js | 191 +++++++++--------- 1 file changed, 96 insertions(+), 95 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/pages/batchMod.js b/koha-tmpl/intranet-tmpl/prog/js/pages/batchMod.js index 4d15973fd1..f71cc3b102 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/pages/batchMod.js +++ b/koha-tmpl/intranet-tmpl/prog/js/pages/batchMod.js @@ -1,86 +1,86 @@ +/* global dataTablesDefaults allColumns */ // Set expiration date for cookies - var date = new Date(); - date.setTime(date.getTime()+(365*24*60*60*1000)); - var expiration = date.toGMTString(); +var date = new Date(); +date.setTime(date.getTime() + (365 * 24 * 60 * 60 * 1000)); - -function hideColumns(){ - valCookie = $.cookie("showColumns"); - if(valCookie){ - valCookie = valCookie.split("/"); - $("#showall").prop("checked", false).parent().removeClass("selected"); - for( i=0; i