From a441ee1ef491f48c9bdfa1ed72b081991fb2f467 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 28 Jun 2022 08:10:38 +0100 Subject: [PATCH] Bug 30982: (QA follow-up) Double quoting and console.log This patch fixes the issues highlighted by the QA script; We use double quotes for translatable strings in JS and remove an errant console.log call. --- .../prog/en/modules/admin/background_jobs.tt | 31 +++++++++---------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt index f30990e160..3456fed233 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt @@ -311,12 +311,12 @@ }); const job_statuses = [ - {'_id': 'new', '_str': _('New')}, - {'_id': 'cancelled', '_str': _('Cancelled')}, - {'_id': 'finished', '_str': _('Finished')}, - {'_id': 'started', '_str': _('Started')}, - {'_id': 'running', '_str': _('Running')}, - {'_id': 'failed', '_str': _('Failed')}, + {'_id': 'new', '_str': _("New")}, + {'_id': 'cancelled', '_str': _("Cancelled")}, + {'_id': 'finished', '_str': _("Finished")}, + {'_id': 'started', '_str': _("Started")}, + {'_id': 'running', '_str': _("Running")}, + {'_id': 'failed', '_str': _("Failed")}, ]; function get_job_status (status) { let status_lib = job_statuses.find( s => s._id == status ); @@ -329,39 +329,39 @@ const job_types = [ { '_id': 'batch_biblio_record_modification', - '_str': _('Batch bibliographic record modification') + '_str': _("Batch bibliographic record modification") }, { '_id': 'batch_biblio_record_deletion', - '_str': _('Batch bibliographic record record deletion') + '_str': _("Batch bibliographic record record deletion") }, { '_id': 'batch_authority_record_modification', - '_str': _('Batch authority record modification') + '_str': _("Batch authority record modification") }, { '_id': 'batch_authority_record_deletion', - '_str': _('Batch authority record deletion') + '_str': _("Batch authority record deletion") }, { '_id': 'batch_item_record_modification', - '_str': _('Batch item record modification') + '_str': _("Batch item record modification") }, { '_id': 'batch_item_record_deletion', - '_str': _('Batch item record deletion') + '_str': _("Batch item record deletion") }, { '_id': 'batch_hold_cancel', - '_str': _('Batch hold cancellation') + '_str': _("Batch hold cancellation") }, { '_id': 'update_elastic_index' - , '_str': _('Update Elasticsearch index') + , '_str': _("Update Elasticsearch index") }, { '_id': 'update_holds_queue_for_biblios', - '_str': _('Holds queue update') + '_str': _("Holds queue update") } ]; @@ -381,7 +381,6 @@ now.setHours(now.getHours() - 1); return { ">": now.toISOString() }; } else { - console.log("not checked"); return { "<": now.toISOString() }; } }, -- 2.34.1