1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-25 23:21:29 +03:00

B #3303: save deploy mode (#3703)

Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
This commit is contained in:
Jorge Lobo 2019-09-16 19:14:31 +02:00 committed by Tino Vázquez
parent efb41f8552
commit 5abfe43b4d

View File

@ -54,7 +54,7 @@ define(function(require) {
this.wizardTabId = WIZARD_TAB_ID + UniqueId.id();
this.icon = 'fa-server';
this.title = Locale.tr("Storage");
this.classes = "hypervisor"
this.classes = "hypervisor";
if(opts.listener != undefined){
this.listener = opts.listener;
@ -145,6 +145,13 @@ define(function(require) {
if (!$.isEmptyObject(diskJSON)) { disksJSON.push(diskJSON); };
});
$('select#TM_MAD_SYSTEM', context).each(function(index, element){
var value = $(element).val();
if(value){
templateJSON["TM_MAD_SYSTEM"] = value;
}
});
if (disksJSON.length > 0) {
templateJSON["DISK"] = disksJSON;
localStorage.setItem("disksJSON", JSON.stringify(disksJSON));