1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-25 02:50:08 +03:00
Update UI common files to give needed support to OpenNebula Self-Service.

(This does not cause any compatibility with Sunstone and OZones)
This commit is contained in:
Hector Sanjuan 2011-12-23 18:15:14 +01:00
parent 9bf8f3fe32
commit 2f4a5a9fa4
2 changed files with 10 additions and 2 deletions

View File

@ -498,9 +498,11 @@ function getSelectedNodes(dataTable){
function makeSelectOptions(dataTable,
id_col,name_col,
status_cols,
bad_status_values){
bad_status_values,no_empty_opt){
var nodes = dataTable.fnGetData();
var select = '<option class="empty_value" value="">'+tr("Please select")+'</option>';
var select = "";
if (!no_empty_opt)
select = '<option class="empty_value" value="">'+tr("Please select")+'</option>';
var array;
for (var j=0; j<nodes.length;j++){
var elem = nodes[j];

View File

@ -366,6 +366,12 @@ $(document).ready(function(){
$('.action_blocks .action_list:visible',main_tabs_context).hide();
});
//Close open panel
$('.close_dialog_link').live("click",function(){
hideDialog();
return false;
});
//Start with the dashboard (supposing we have one).
showTab('#dashboard_tab');