From 10f4420401c746540503f380a46d5cd13e160bec Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sat, 6 Dec 2014 10:35:44 -0500 Subject: Auto-select input fields for copy/paste --- app/Template/config/api.php | 2 +- app/Template/config/webhook.php | 2 +- app/Template/project/share.php | 6 +++--- app/Template/project/show.php | 2 +- assets/js/app.js | 9 +++++++-- assets/js/base.js | 9 +++++++-- 6 files changed, 20 insertions(+), 10 deletions(-) diff --git a/app/Template/config/api.php b/app/Template/config/api.php index 037ea08d..20a02340 100644 --- a/app/Template/config/api.php +++ b/app/Template/config/api.php @@ -9,7 +9,7 @@
  • - +
  • 'api'), true) ?> diff --git a/app/Template/config/webhook.php b/app/Template/config/webhook.php index 052a2a99..abd8da5f 100644 --- a/app/Template/config/webhook.php +++ b/app/Template/config/webhook.php @@ -29,7 +29,7 @@
  • - +
  • 'webhook'), true) ?> diff --git a/app/Template/project/share.php b/app/Template/project/share.php index 8edcbbc0..10155492 100644 --- a/app/Template/project/share.php +++ b/app/Template/project/share.php @@ -6,10 +6,10 @@
      -
    • $project['token'])) ?>
    • -
    • $project['token'])) ?>
    • +
    • $project['token']), false, '', '', true) ?>
    • +
    • $project['token']), false, '', '', true) ?>
    - +
    $project['id'], 'switch' => 'disable'), true, 'btn btn-red') ?> diff --git a/app/Template/project/show.php b/app/Template/project/show.php index b1b552df..bdb46ee3 100644 --- a/app/Template/project/show.php +++ b/app/Template/project/show.php @@ -60,7 +60,7 @@

    -
    +

    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(); + }); } }; -- cgit v1.2.3