Use components to render charts
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user