1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-21 02:27:40 +00:00

Format seriesindex everywhere to 2 digits

This commit is contained in:
Ozzie Isaacs
2024-10-18 20:24:49 +02:00
parent 94df767c28
commit c40c8a2255
12 changed files with 28 additions and 14 deletions

View File

@@ -685,6 +685,17 @@ function ratingFormatter(value, row) {
return (value/2);
}
function seriesIndexFormatter(value, row) {
if (!value) {
return value;
}
formated_value = Number(value).toFixed(2);
if (formated_value.endsWith(".00")) {
formated_value = parseInt(formated_value).toString();
}
return formated_value;
}
/* Do some hiding disabling after user list is loaded */
function loadSuccess() {
@@ -849,6 +860,7 @@ function BookCheckboxChange(checkbox, userId, field) {
},
success: handleListServerResponse
});
console.log("test");
}