Persist account names on transaction editor on refresh
This commit is contained in:
parent
86c5371d32
commit
e5cce0fd4b
@ -57,6 +57,10 @@ function initCombobox(elCombobox) {
|
|||||||
updateComboboxInputs(elCombobox, elInput);
|
updateComboboxInputs(elCombobox, elInput);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Disable autocomplete
|
||||||
|
// Set this in Javascript rather than in HTML so that browser will continue to persist values after refresh
|
||||||
|
elInput.autocomplete = 'off';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Init comboboxes
|
// Init comboboxes
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="relative combobox w-full">
|
<div class="relative combobox w-full">
|
||||||
<input type="text" class="bordered-field pl-16 peer" name="account" autocomplete="off">
|
<input type="text" class="bordered-field pl-16 peer" name="account">
|
||||||
{% include 'components/accounts_combobox_inner.html' %}
|
{% include 'components/accounts_combobox_inner.html' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -69,7 +69,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="relative combobox w-full">
|
<div class="relative combobox w-full">
|
||||||
<input type="text" class="bordered-field pl-16 peer" name="account" autocomplete="off">
|
<input type="text" class="bordered-field pl-16 peer" name="account">
|
||||||
{% include 'components/accounts_combobox_inner.html' %}
|
{% include 'components/accounts_combobox_inner.html' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -133,7 +133,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="relative combobox w-full">
|
<div class="relative combobox w-full">
|
||||||
<input type="text" class="bordered-field pl-16 peer" name="account" value="{{ posting.account }}" autocomplete="off">
|
<input type="text" class="bordered-field pl-16 peer" name="account" value="{{ posting.account }}">
|
||||||
{% include 'components/accounts_combobox_inner.html' %}
|
{% include 'components/accounts_combobox_inner.html' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user