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:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user