diff options
Diffstat (limited to 'assets')
-rw-r--r-- | assets/js/app.js | 9 | ||||
-rw-r--r-- | assets/js/base.js | 9 |
2 files changed, 14 insertions, 4 deletions
diff --git a/assets/js/app.js b/assets/js/app.js index d91a0823..5e13d013 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -168,8 +168,13 @@ var Kanboard = (function() { $("#markdown-preview").click(Kanboard.MarkdownPreview); $("#markdown-write").click(Kanboard.MarkdownWriter); - // Check the session every 10s - window.setInterval(Kanboard.CheckSession, 10000); + // Check the session every 60s + window.setInterval(Kanboard.CheckSession, 60000); + + // Auto-select input fields + $(".auto-select").focus(function() { + $(this).select(); + }); } }; diff --git a/assets/js/base.js b/assets/js/base.js index 9303b348..2ad19ac0 100644 --- a/assets/js/base.js +++ b/assets/js/base.js @@ -153,8 +153,13 @@ var Kanboard = (function() { $("#markdown-preview").click(Kanboard.MarkdownPreview); $("#markdown-write").click(Kanboard.MarkdownWriter); - // Check the session every 10s - window.setInterval(Kanboard.CheckSession, 10000); + // Check the session every 60s + window.setInterval(Kanboard.CheckSession, 60000); + + // Auto-select input fields + $(".auto-select").focus(function() { + $(this).select(); + }); } }; |