summaryrefslogtreecommitdiff
path: root/assets/js/core
diff options
context:
space:
mode:
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);
+};