summaryrefslogtreecommitdiff
path: root/assets/js/src/base.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/src/base.js')
-rw-r--r--assets/js/src/base.js6
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');