diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-11-09 17:59:02 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-11-09 17:59:02 -0500 |
commit | e89ba5e9e692f33427fedb05a095255f27480a6b (patch) | |
tree | 59cbca6ac75a8eff45be14f6ae4ab487e0a427b1 /assets/js/base.js | |
parent | 3df63e051fac84cec98c912668722f87d6e8183e (diff) |
Analytics: add the first graph (task repartition)
Diffstat (limited to 'assets/js/base.js')
-rw-r--r-- | assets/js/base.js | 9 |
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(); |