mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 04:12:37 +09:00
feature #1664: Cosmetic changes
This commit is contained in:
1 parent
bfae273a3d
commit
f2c104bb2f
3 files changed
+16
-8
No files matched your search
@@ -95,9 +95,9 @@ var create_cluster_tmpl ='<div id="cluster_create_tabs">\
|
||||
</div>\
|
||||
<br>\
|
||||
<dl class="tabs">\
|
||||
<dd class="active"><a href="#tab-hosts">'+tr("HOSTs")+'</a></dd>\
|
||||
<dd><a href="#tab-vnets">'+tr("VIRTUAL NETWORKs")+'</a></dd>\
|
||||
<dd><a href="#tab-datastores">'+tr("DATASTOREs")+'</a></dd>\
|
||||
<dd class="active"><a href="#tab-hosts">'+tr("Hosts")+'</a></dd>\
|
||||
<dd><a href="#tab-vnets">'+tr("Virtual Networks")+'</a></dd>\
|
||||
<dd><a href="#tab-datastores">'+tr("Datastores")+'</a></dd>\
|
||||
</dl>\
|
||||
<ul class="tabs-content">\
|
||||
<li id="tab-hostsTab" class="active">\
|
||||
@@ -445,9 +445,6 @@ function setupCreateClusterDialog(datatable_filter){
|
||||
}
|
||||
});
|
||||
|
||||
// Enhance buttons
|
||||
//$('button',dialog).button();
|
||||
|
||||
$("#refresh_host_table_button_class", dialog).click( function(){
|
||||
Sunstone.runAction("ClusterHost.list");
|
||||
}
|
||||
|
||||
@@ -632,6 +632,13 @@ function updateDatastoreInfo(request,ds){
|
||||
images_str=getImageName(info.IMAGES.ID);
|
||||
};
|
||||
|
||||
|
||||
var cluster_str = '<td class="key_td">Cluster</td><td>-</td>';
|
||||
if (info.ID != "0")
|
||||
{
|
||||
cluster_str = insert_cluster_dropdown("Datastore",info.ID,info.CLUSTER,info.CLUSTER_ID);
|
||||
}
|
||||
|
||||
var info_tab_content = '<div class="row">\
|
||||
<div class="six columns">\
|
||||
<table id="info_datastore_table" class="twelve datatable extended_table">\
|
||||
@@ -650,7 +657,7 @@ function updateDatastoreInfo(request,ds){
|
||||
<td></td>\
|
||||
</tr>\
|
||||
<tr>'+
|
||||
insert_cluster_dropdown("Datastore",info.ID,info.CLUSTER,info.CLUSTER_ID) +
|
||||
cluster_str +
|
||||
'</tr>\
|
||||
<tr>\
|
||||
<td class="key_td">'+tr("Base path")+'</td>\
|
||||
|
||||
@@ -376,7 +376,10 @@ var image_actions = {
|
||||
Sunstone.runAction("Image.list");
|
||||
},
|
||||
elements: imageElements,
|
||||
error: onError,
|
||||
error: function (req,error_json) {
|
||||
Sunstone.runAction("Image.showinfo",req.request.data[0]);
|
||||
onError(req,error_json);
|
||||
},
|
||||
notify: true
|
||||
},
|
||||
|
||||
@@ -751,6 +754,7 @@ function updateImageInfo(request,img){
|
||||
$("#chg_type_select").live("change", function() {
|
||||
var new_value=$("option:selected", this).text();
|
||||
Sunstone.runAction("Image.chtype", img_info.ID, new_value);
|
||||
Sunstone.runAction("Image.showinfo", img_info.ID);
|
||||
});
|
||||
|
||||
// Listener for edit link for persistency change
|
||||
|
||||
Reference in new issue
Block a user