1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

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 ebf34a69c4e8b61e15e8ce742e627e4c47cddb36)
This commit is contained in:
Carlos Martín 2015-11-06 13:32:04 +01:00
parent 041f39cc4f
commit afd6caa919

View File

@ -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);
}
}