Renamed the "content" dataset to "text" in the base account selector of the account form, for consistency.

This commit is contained in:
依瑪貓 2023-03-22 23:56:37 +08:00
parent 907ce6d06e
commit a4ab8a761c
2 changed files with 2 additions and 2 deletions

View File

@ -282,7 +282,7 @@ class BaseAccountSelector {
});
for (const option of this.#options) {
option.onclick = () => {
this.#form.setBaseAccount(option.dataset.code, option.dataset.content);
this.#form.setBaseAccount(option.dataset.code, option.dataset.text);
};
}
this.#clearButton.onclick = () => {

View File

@ -101,7 +101,7 @@ First written: 2023/2/1
<ul id="accounting-base-selector-option-list" class="list-group accounting-selector-list">
{% for base in form.base_options %}
<li class="list-group-item accounting-clickable accounting-base-selector-option" data-code="{{ base.code }}" data-content="{{ base }}" data-query-values="{{ base.query_values|tojson|forceescape }}" data-bs-dismiss="modal">
<li class="list-group-item accounting-clickable accounting-base-selector-option" data-code="{{ base.code }}" data-text="{{ base }}" data-query-values="{{ base.query_values|tojson|forceescape }}" data-bs-dismiss="modal">
{{ base }}
</li>
{% endfor %}