diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-11-21 22:50:57 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-11-21 22:50:57 -0500 |
commit | 8976f4d15c151afaf2249c526c6a42463e98f491 (patch) | |
tree | 990ee2b73ad171b0d04fc199e6d20242e80da8da /assets/js/src/App.js | |
parent | a3bb27109dc01fa5df2c771b84620f1e8f56b849 (diff) |
Use components to render charts
Diffstat (limited to 'assets/js/src/App.js')
-rw-r--r-- | assets/js/src/App.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/assets/js/src/App.js b/assets/js/src/App.js index 31b7f51a..48ef7bf6 100644 --- a/assets/js/src/App.js +++ b/assets/js/src/App.js @@ -180,20 +180,6 @@ Kanboard.App.prototype.hideLoadingIcon = function() { $("#app-loading-icon").remove(); }; -Kanboard.App.prototype.formatDuration = function(d) { - if (d >= 86400) { - return Math.round(d/86400) + "d"; - } - else if (d >= 3600) { - return Math.round(d/3600) + "h"; - } - else if (d >= 60) { - return Math.round(d/60) + "m"; - } - - return d + "s"; -}; - Kanboard.App.prototype.isVisible = function() { var property = ""; |