Bug #4069: Honor the value requested in the disk-resize input

This way if the value is lower the user will be notified with
an error from the core. A nicer way would be to use a custom
abide validator
This commit is contained in:
Carlos Martín committed 2015-11-06 13:32:04 +01:00
1 parent 6e459ad19a
commit ebf34a69c4
1 file changed
+1 -1
@@ -152,7 +152,7 @@ define(function(require){
disk = $(this).data("template_disk");
original_size = $(this).data("original_size");
size = $("#SIZE", this).val();
if (size && size > original_size && size > 0) {
if (size) {
disk['SIZE'] = Math.ceil(size * 1024);
}
}