From 5927575ec80d4317fa1ce56c7c24bbc0b7742c13 Mon Sep 17 00:00:00 2001 From: frankknoll Date: Fri, 14 Apr 2023 11:51:40 +0200 Subject: [PATCH] refactoring --- docs/{HistogramView.js => BatchCodeDetailsView.js} | 5 ++--- docs/BatchCodeSelectInitializer.js | 2 +- docs/batchCodeTable.html | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) rename docs/{HistogramView.js => BatchCodeDetailsView.js} (98%) diff --git a/docs/HistogramView.js b/docs/BatchCodeDetailsView.js similarity index 98% rename from docs/HistogramView.js rename to docs/BatchCodeDetailsView.js index 29f45bfd610..82ad95bad7b 100644 --- a/docs/HistogramView.js +++ b/docs/BatchCodeDetailsView.js @@ -1,5 +1,4 @@ -// FK-TODO: rename to BatchCodeDetailsView -class HistogramView { +class BatchCodeDetailsView { #uiContainer; @@ -8,7 +7,7 @@ class HistogramView { } // FK-TODO: unbind all events here and in HistogramChartView - displayHistogramView(batchcode) { + displayBatchCodeDetails(batchcode) { this .#loadHistoDescrs(batchcode) .then(histoDescrs => this.#displayHistogramViewForHistoDescrs(histoDescrs)); diff --git a/docs/BatchCodeSelectInitializer.js b/docs/BatchCodeSelectInitializer.js index 834ecb017b5..8c7c98ef8d7 100644 --- a/docs/BatchCodeSelectInitializer.js +++ b/docs/BatchCodeSelectInitializer.js @@ -6,7 +6,7 @@ class BatchCodeSelectInitializer { 'select2:select', function (event) { const batchcode = event.params.data.id; - new HistogramView(batchCodeDetailsElement).displayHistogramView(batchcode); + new BatchCodeDetailsView(batchCodeDetailsElement).displayBatchCodeDetails(batchcode); GoogleAnalytics.click_batchcode(batchcode); }); batchCodeSelectElement.select2('open'); diff --git a/docs/batchCodeTable.html b/docs/batchCodeTable.html index 2700efe2afa..1178e116b82 100644 --- a/docs/batchCodeTable.html +++ b/docs/batchCodeTable.html @@ -36,7 +36,7 @@ - +