Renamed the "content" dataset to "text" in the base account selector of the account form, for consistency.
This commit is contained in:
parent
907ce6d06e
commit
a4ab8a761c
@ -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 = () => {
|
||||
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user