diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-03-28 13:27:04 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-03-28 13:27:04 -0400 |
commit | 346309cfcffbaf5e0f4d78a18870420d03ed6bf1 (patch) | |
tree | 4621afa90866e294a003fb8145dee8ff72665aec /assets/js/src | |
parent | 280d9896d96ed236f4048e3564964a6f8d53bb75 (diff) |
Fix autofocus input fields for popover
Diffstat (limited to 'assets/js/src')
-rw-r--r-- | assets/js/src/base.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/assets/js/src/base.js b/assets/js/src/base.js index 05846ab8..0cd0e7df 100644 --- a/assets/js/src/base.js +++ b/assets/js/src/base.js @@ -222,6 +222,11 @@ var Kanboard = (function() { // Popover $(document).on("click", ".popover", Kanboard.Popover); + // Autofocus fields (html5 autofocus works only with page onload) + $("input[autofocus]").each(function(index, element) { + $(this).focus(); + }) + // Datepicker $(".form-date").datepicker({ showOtherMonths: true, @@ -243,6 +248,7 @@ var Kanboard = (function() { $(".dropit-submenu").hide(); $('.dropdown').not(".dropit").dropit({ triggerParentEl : "span" }); + // Task auto-completion if ($(".task-autocomplete").length) { $(".task-autocomplete").parent().find("input[type=submit]").attr('disabled','disabled'); |