Rewrite task move position component and remove Vuejs

This commit is contained in:
Frederic Guillot
2016-11-26 16:00:52 -05:00
parent e64faae69a
commit 04ff67e26b
17 changed files with 464 additions and 247 deletions

13
assets/js/core/utils.js Normal file
View File

@@ -0,0 +1,13 @@
KB.utils.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";
};