fix: focus medicine name field after add/update in consult
This commit is contained in:
parent
1843460693
commit
c4865f6e03
|
|
@ -5187,6 +5187,12 @@
|
|||
$('#opd_session_id').val(data.opd_session_id || sid);
|
||||
clearMedicineForm(true);
|
||||
loadMedicineList();
|
||||
// Keep typing flow fast: move cursor back to medicine field.
|
||||
setTimeout(function() {
|
||||
var $medName = $('#med_name');
|
||||
$medName.trigger('focus');
|
||||
$medName.trigger('select');
|
||||
}, 20);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user