mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-19 10:03:36 +03:00
feature #1727: Check if size is greater than the original
This commit is contained in:
parent
0351583ab7
commit
ded5071010
@ -1503,7 +1503,6 @@ define(function(require) {
|
|||||||
extended: true
|
extended: true
|
||||||
},
|
},
|
||||||
success: function(request, extendedTemplateJSON) {
|
success: function(request, extendedTemplateJSON) {
|
||||||
console.log(extendedTemplateJSON)
|
|
||||||
var extendedTemplateDisk = extendedTemplateJSON.VMTEMPLATE.TEMPLATE.DISK;
|
var extendedTemplateDisk = extendedTemplateJSON.VMTEMPLATE.TEMPLATE.DISK;
|
||||||
var extendedDisks = []
|
var extendedDisks = []
|
||||||
if ($.isArray(extendedTemplateDisk)) {
|
if ($.isArray(extendedTemplateDisk)) {
|
||||||
@ -1626,7 +1625,7 @@ define(function(require) {
|
|||||||
disk = $(this).data("template_disk");
|
disk = $(this).data("template_disk");
|
||||||
original_size = $(this).data("original_size");
|
original_size = $(this).data("original_size");
|
||||||
size = $("#SIZE", this).val();
|
size = $("#SIZE", this).val();
|
||||||
if (size && size != original_size && size > 0) {
|
if (size && size > original_size && size > 0) {
|
||||||
disk['SIZE'] = Math.ceil(size * 1024);
|
disk['SIZE'] = Math.ceil(size * 1024);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user