aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/gentoaster.js')
-rw-r--r--web/js/gentoaster.js14
1 files changed, 8 insertions, 6 deletions
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"
+ },
}
}
});