Skip to content

Commit

Permalink
Allow modal autofocus of fields other than input
Browse files Browse the repository at this point in the history
  • Loading branch information
rsa33 committed Sep 30, 2023
1 parent eee7e3f commit aeb047b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control/static/script.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$(document).ready(function() {
$("#action-modal").on("shown.bs.modal", function(e) {
$("#action-modal-content input[autofocus]").focus();
$("#action-modal-content [autofocus]").focus();
});
$("a[rel='modal']").click(function(ev) {
$("#action-modal-content").empty()
Expand Down

0 comments on commit aeb047b

Please sign in to comment.