diff options
Diffstat (limited to 'ogcp/templates/disk_inspector.html')
-rw-r--r-- | ogcp/templates/disk_inspector.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ogcp/templates/disk_inspector.html b/ogcp/templates/disk_inspector.html index f3f190a..2f1b3dc 100644 --- a/ogcp/templates/disk_inspector.html +++ b/ogcp/templates/disk_inspector.html @@ -180,7 +180,12 @@ let freeSpace = diskSize; let partNum = 1; $('#partitionsTable tr').each(function() { + {% if readonly_disk_inspector is defined %} + let partitionSize = parseInt($(this).find('td').eq(3).text().trim()); + {% else %} let partitionSize = parseInt($(this).find('td').eq(3).find('input').val().trim()); + {% endif %} + if (isNaN(partitionSize)) { partitionSize = 0; } |