fix(minor): debounce taxes call

This commit is contained in:
Rushabh Mehta 2020-12-16 09:43:57 +05:30
parent 23f638a47c
commit 34fc528500
2 changed files with 3 additions and 2 deletions

View File

@ -34,6 +34,7 @@ erpnext.setup_auto_gst_taxation = (doctype) => {
doctype: frm.doc.doctype,
company: frm.doc.company
},
debounce: 2000,
callback: function(r) {
if(r.message) {
frm.set_value('taxes_and_charges', r.message.taxes_and_charges);

View File

@ -1,12 +1,12 @@
{% if not hide_footer_signup %}
<div class="input-group">
<input type="text" class="form-control border-secondary"
<input type="text" class="form-control"
id="footer-subscribe-email"
placeholder="{{ _('Your email address...') }}"
aria-label="{{ _('Your email address...') }}"
aria-describedby="footer-subscribe-button">
<div class="input-group-append">
<button class="btn btn-sm btn-outline-secondary"
<button class="btn btn-sm btn-default"
type="button" id="footer-subscribe-button">{{ _("Get Updates") }}</button>
</div>
</div>