summaryrefslogtreecommitdiff
path: root/assets/js/core
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-12-10 13:05:35 -0500
committerFrederic Guillot <fred@kanboard.net>2016-12-10 13:05:35 -0500
commit90c9e86461a6c240499c94ed9fcd36e7b4fbcef3 (patch)
tree78f062a1b04af4c5a42f52485e7b51ab9f9fe86b /assets/js/core
parentc0049ed7e6459b234e69b763e82baca349763a4b (diff)
Rewrite session check component in vanilla js
Diffstat (limited to 'assets/js/core')
-rw-r--r--assets/js/core/base.js4
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);
+};