Fix autofocus input fields for popover

This commit is contained in:
Frederic Guillot
2015-03-28 13:27:04 -04:00
parent 280d9896d9
commit 346309cfcf
2 changed files with 9 additions and 3 deletions

View File

@@ -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');