From 0d8157a8648bf1c728e07deb79fbb0cd2def0c54 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Thu, 4 Jul 2013 16:30:11 +0200 Subject: [PATCH] feature #2039: Use new function in refresh network button --- .../public/js/plugins/templates-tab.js | 21 ++++--------------- 1 file changed, 4 insertions(+), 17 deletions(-) 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")+'