diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 249a933f..cc1317a5 100755 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -107,7 +107,7 @@ $(document).ready(function() { } }); - $('form:first *:input[type!=hidden]:first').focus(); + $('form:first *input[data-behaviour!=datepicker]:input[type!=hidden]:first').focus(); // $(document).on("focus", "[data-behaviour~='datepicker']", function(e){ // $(this).datepicker({"format": "yyyy-M-dd", "weekStart": 1, "autoclose": true}); diff --git a/app/views/reports/commission/_commission_report_filter.html.erb b/app/views/reports/commission/_commission_report_filter.html.erb index 0e2f71f8..d7d41eb6 100755 --- a/app/views/reports/commission/_commission_report_filter.html.erb +++ b/app/views/reports/commission/_commission_report_filter.html.erb @@ -1,7 +1,7 @@