mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09: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
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user