From a337bde821d77ae9c5163f16be438db126efbf5e Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Tue, 30 Jul 2013 15:41:17 +0200 Subject: [PATCH] bug #2215: VM Create wizard loses template selection when table is refreshed --- src/sunstone/public/js/plugins/vms-tab.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sunstone/public/js/plugins/vms-tab.js b/src/sunstone/public/js/plugins/vms-tab.js index 4876e21db8..b7c113f977 100644 --- a/src/sunstone/public/js/plugins/vms-tab.js +++ b/src/sunstone/public/js/plugins/vms-tab.js @@ -2924,12 +2924,12 @@ function setupCreateVMDialog(include_select_image){ "sDom" : '<"H">t<"F"p>', "aoColumnDefs": [ { "sWidth": "35px", "aTargets": [0,1] }, - { "bVisible": false, "aTargets": [1,2,3,5]} + { "bVisible": false, "aTargets": [0,2,3,5]} ], "fnDrawCallback": function(oSettings) { var nodes = this.fnGetNodes(); $.each(nodes, function(){ - if ($(this).find("td:eq(1)").html() == $('#TEMPLATE_ID', dialog).val()) { + if ($(this).find("td:eq(0)").html() == $('#TEMPLATE_ID', dialog).val()) { $("td", this).addClass('markrow'); $('input.check_item', this).attr('checked','checked'); } @@ -2975,12 +2975,12 @@ function setupCreateVMDialog(include_select_image){ "sDom" : '<"H">t<"F"p>', "aoColumnDefs": [ { "sWidth": "35px", "aTargets": [0,1] }, - { "bVisible": false, "aTargets": [2,3,7,8,5,9,12]} + { "bVisible": false, "aTargets": [0,2,3,7,8,5,9,12]} ], "fnDrawCallback": function(oSettings) { var nodes = this.fnGetNodes(); $.each(nodes, function(){ - if ($(this).find("td:eq(1)").html() == $('#IMAGE_ID', dialog).val()) { + if ($(this).find("td:eq(0)").html() == $('#IMAGE_ID', dialog).val()) { $("td", this).addClass('markrow'); $('input.check_item', this).attr('checked','checked'); }