From 6966eb6938356224c61760ec44a15c2e690311e3 Mon Sep 17 00:00:00 2001 From: Liam McLoughlin Date: Sun, 24 Jul 2011 03:34:02 +0100 Subject: Added disk size cap --- web/index.php | 10 +++++++++- web/js/gentoaster.js | 14 ++++++++------ 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/web/index.php b/web/index.php index 43be192..6b6abec 100644 --- a/web/index.php +++ b/web/index.php @@ -37,6 +37,11 @@ +
@@ -108,7 +113,7 @@

Partitioning


-
+




@@ -148,6 +153,9 @@
+ diff --git a/web/js/gentoaster.js b/web/js/gentoaster.js index 99cd514..2ff875b 100644 --- a/web/js/gentoaster.js +++ b/web/js/gentoaster.js @@ -25,9 +25,10 @@ $(function(){ root_size: { min: 3072 }, - size: { - min: 4020 - } + image_size: { + min: 4020, + max: MAX_DISK_SIZE + }, }, messages: { username: { @@ -49,9 +50,10 @@ $(function(){ root_size: { min: "Your root partition must be at least 3072MB" }, - size: { - min: "Your disk image must be at least 4020MB" - } + image_size: { + min: "Your disk image must be at least 4020MB", + max: "Your disk image cannot be larger than "+MAX_DISK_SIZE+"MB" + }, } } }); -- cgit v1.2.3-65-gdbad