Skip to content

Commit

Permalink
added auto-focus to dashboard quick expense modal
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyharrington committed May 15, 2020
1 parent fdbe347 commit 699245e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions static/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ function loadTrendsData(trendsData) {
loadSpendingTrendsChart(spendingTrends);
}

// After the modal is fully rendered, focus input into the new 'description' field
$('#quickExpenseModal').on('shown.bs.modal', function () {
$('#description').trigger('focus')
})

function loadBudgetCharts(budgets) {
if (budgets == null) {
return;
Expand Down

0 comments on commit 699245e

Please sign in to comment.