diff --git a/src/sunstone/public/js/plugins/clusters-tab.js b/src/sunstone/public/js/plugins/clusters-tab.js index 8ba1c2187d..bb812091d3 100644 --- a/src/sunstone/public/js/plugins/clusters-tab.js +++ b/src/sunstone/public/js/plugins/clusters-tab.js @@ -73,96 +73,100 @@ var datastore_datatable_table_tmpl='\ ' -var create_cluster_tmpl ='
\ -

\ - '+tr("Create Cluster")+'\ - '+tr("Update Cluster")+'\ -

\ +var create_cluster_tmpl ='
\ +

'+tr("Create Cluster")+'

\ +

'+tr("Update Cluster")+'

\
\
\
\ -
\ -
\ -
\ - \ -
\ -
\ - \ -
\ -
\ -
\ -
\ +
\ +
\ + \ + \ +
\ + \
\ -
\ -
\ -
'+tr("Hosts")+'
\ -
'+tr("Virtual Networks")+'
\ -
'+tr("Datastores")+'
\ -
\ -
\ +
\
\ -
\ -
\ +
\ +
\ \
\ -
\ - \ +
\ + \
\
\ -
\ - ' + host_datatable_table_tmpl + '
\ -
\ -
\ - '+tr("Please select one or more hosts from the list")+'\ - \ +
\ +
\ + ' + host_datatable_table_tmpl + '
\ +
\ +
\ +
\ +
\ + '+tr("Please select one or more hosts from the list")+'\ + \ +
\
\
\
\ -
\ -
\ +
\ +
\ \
\ -
\ - \ +
\ + \
\
\
\ - ' + vnet_datatable_table_tmpl + '
\ +
\ + ' + vnet_datatable_table_tmpl + '
\ +
\ +
\
\ -
\ - '+tr("Please select one or more vnets from the list")+'\ - \ +
\ +
\ + '+tr("Please select one or more vnets from the list")+'\ + \ +
\
\
\
\ -
\ -
\ +
\ +
\ \
\ -
\ - \ +
\ + \
\
\
\ - ' + datastore_datatable_table_tmpl + '
\ -
\ -
\ - '+tr("Please select one or more datastores from the list")+'\ - \ +
\ + ' + datastore_datatable_table_tmpl + '
\ +
\ +
\ +
\ +
\ + '+tr("Please select one or more datastores from the list")+'\ + \ +
\
\
\ -
\ - \
\ - \ - ×'; +\ +
\ +\ +×'; // Common utils for datatatables // Holds the selected items @@ -501,7 +505,7 @@ function popUpUpdateClusterDialog(){ if (dialog) { dialog.remove(); - dialogs_context.append('
'); + dialogs_context.append('
'); } reset_counters; @@ -528,15 +532,18 @@ function popUpUpdateClusterDialog(){ setupCreateClusterDialog(); + // Activate update button + $('#create_cluster_submit',$create_cluster_dialog).hide(); + $('#update_cluster_submit',$create_cluster_dialog).show(); + $('#create_cluster_header',$create_cluster_dialog).hide(); + $('#update_cluster_header',$create_cluster_dialog).show(); + Sunstone.runAction("ClusterHost.list"); Sunstone.runAction("ClusterVN.list"); Sunstone.runAction("ClusterDS.list"); $create_cluster_dialog.foundation().foundation('reveal', 'open'); - $('#create_cluster_dialog').attr('title','Update Cluster'); - return false; - } // Fill update dialog with loaded properties @@ -564,12 +571,6 @@ function fillPopPup(request,response){ ds_ids = [ds_ids]; } - // Activate update button - $('#create_cluster_submit',dialog).hide(); - $('#update_cluster_submit',dialog).show(); - $('#create_cluster_header',dialog).hide(); - $('#update_cluster_header',dialog).show(); - // Fill in the name $('#name',dialog).val(name); $('#name',dialog).attr("disabled", "disabled");