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

bug #2660: Image wizard remembers some fields, but resets the others

This commit is contained in:
Daniel Molina 2014-02-06 15:32:42 +01:00
parent 15bbaaf611
commit 1eafb4e4c8

View File

@ -1184,9 +1184,18 @@ function initialize_datastore_info_create_image_dialog(dialog) {
true
);
var selected_datastore = $('#img_datastore',dialog).val();
var selected_datastore_raw = $('#img_datastore_raw',dialog).val();
$('#img_datastore',dialog).html(datastores_str);
$('#img_datastore_raw',dialog).html(datastores_str);
if (selected_datastore)
$('#img_datastore',dialog).val(selected_datastore)
if (selected_datastore_raw)
$('#img_datastore_raw',dialog).val(selected_datastore_raw)
$('select#img_datastore', dialog).children('option').each(function() {
if ($(this).val() == "2") {
$(this).attr('disabled', 'disabled');