diff --git a/src/sunstone/public/js/plugins/templates-tab.js b/src/sunstone/public/js/plugins/templates-tab.js index 2ee2355b55..1fa9e1e920 100644 --- a/src/sunstone/public/js/plugins/templates-tab.js +++ b/src/sunstone/public/js/plugins/templates-tab.js @@ -1455,21 +1455,8 @@ function generate_nic_tab_content(str_nic_tab_id, str_datatable_id){ $("#refresh_template_nic_table_button_class"+str_nic_tab_id).die(); $("#refresh_template_nic_table_button_class"+str_nic_tab_id).live('click', function(){ - // Retrieve the nics to fill the datatable - OpenNebula.Network.list({ - timeout: true, - success: function (request, networks_list){ - var network_list_array = []; - - $.each(networks_list,function(){ - network_list_array.push(vNetworkElementArray(this)); - }); - var dataTable_template_networks = $('table[id='+str_datatable_id+']').dataTable(); - updateView(network_list_array, dataTable_template_networks); - } - }); - } - ); + update_datatable_template_networks($('table[id='+str_datatable_id+']').dataTable()); + }); return html; } @@ -2055,7 +2042,7 @@ function setupCreateTemplateDialog(){ ''+ ''+ ''+ - ''+ + ''+ ''+ ''+ ''+ @@ -2115,7 +2102,7 @@ function setupCreateTemplateDialog(){ '
'+tr("ID")+''+tr("Owner")+''+tr("Group")+'
'+ ''+ ''+ - ''+ + ''+ ''+ ''+ ''+
'+tr("ID")+''+tr("Owner")+''+tr("Group")+'