From 46e34bb89a0f9a1ec86f72a5ebac71e898aeef15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sat, 18 Mar 2023 18:11:32 +0800 Subject: [PATCH] Removed setting the redundant "entryType" dataset from the "onAddNew" and "onEdit" methods of the JournalEntryEditor class. It is not used anymore. --- src/accounting/static/js/journal-entry-editor.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/accounting/static/js/journal-entry-editor.js b/src/accounting/static/js/journal-entry-editor.js index d913ba9..ccf4343 100644 --- a/src/accounting/static/js/journal-entry-editor.js +++ b/src/accounting/static/js/journal-entry-editor.js @@ -463,7 +463,6 @@ class JournalEntryEditor { this.entry = null; this.#side = side; this.entryType = this.#side.entryType; - this.#element.dataset.entryType = side.entryType; this.isNeedOffset = false; this.#originalEntryContainer.classList.add("d-none"); this.#originalEntryControl.classList.remove("accounting-not-empty"); @@ -508,7 +507,6 @@ class JournalEntryEditor { this.entry = entry; this.#side = entry.side; this.entryType = this.#side.entryType; - this.#element.dataset.entryType = entry.entryType; this.isNeedOffset = entry.isOriginalEntry(); if (originalEntryId === "") { this.#originalEntryContainer.classList.add("d-none");