summaryrefslogtreecommitdiff
path: root/assets/js/base.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/base.js')
-rw-r--r--assets/js/base.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/assets/js/base.js b/assets/js/base.js
index 55a8fd1e..1e5ff967 100644
--- a/assets/js/base.js
+++ b/assets/js/base.js
@@ -3,6 +3,15 @@ var Kanboard = (function() {
return {
+ // Return true if the element#id exists
+ Exists: function(id) {
+ if (document.getElementById(id)) {
+ return true;
+ }
+
+ return false;
+ },
+
// Display a popup
Popover: function(e, callback) {
e.preventDefault();