diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-12-10 13:05:35 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-12-10 13:05:35 -0500 |
commit | 90c9e86461a6c240499c94ed9fcd36e7b4fbcef3 (patch) | |
tree | 78f062a1b04af4c5a42f52485e7b51ab9f9fe86b /assets/js/core | |
parent | c0049ed7e6459b234e69b763e82baca349763a4b (diff) |
Rewrite session check component in vanilla js
Diffstat (limited to 'assets/js/core')
-rw-r--r-- | assets/js/core/base.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/assets/js/core/base.js b/assets/js/core/base.js index 07ddf99b..1da72357 100644 --- a/assets/js/core/base.js +++ b/assets/js/core/base.js @@ -88,3 +88,7 @@ KB.render = function () { } } }; + +KB.interval = function (seconds, callback) { + setInterval(callback, seconds * 1000); +}; |