Rewrite task move position component and remove Vuejs
This commit is contained in:
13
assets/js/core/utils.js
Normal file
13
assets/js/core/utils.js
Normal 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";
|
||||
};
|
||||
Reference in New Issue
Block a user