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

(cherry picked from commit ebf34a69c4)
This commit is contained in:
Carlos Martín committed 2015-11-06 13:33:40 +01:00
1 parent 041f39cc4f
commit afd6caa919
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);
}
}