1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-25 23:21:29 +03:00

SelfSerice: Do not open info panels on empty list click.

(cherry picked from commit 60b8e15ee9)
This commit is contained in:
Hector Sanjuan 2012-01-12 16:39:28 +01:00 committed by Ruben S. Montero
parent 1485b71826
commit 4e6071ee98
3 changed files with 12 additions and 4 deletions

View File

@ -427,9 +427,12 @@ function vMachineInfoListener(){
$('#tbodyvmachines tr',dataTable_vMachines).live("click", function(e){
if ($(e.target).is('input') || $(e.target).is('a img')) {return true;}
popDialogLoading();
var aData = dataTable_vMachines.fnGetData(this);
var id = $(aData[0]).val();
if (!id) return true;
popDialogLoading();
Sunstone.runAction("VM.showinfo",id);
return false;
});

View File

@ -237,10 +237,13 @@ function vNetworkElementArray(vn_json){
function vNetworkInfoListener(){
$('#tbodyvnetworks tr',dataTable_vNetworks).live("click", function(e){
if ($(e.target).is('input')) {return true;}
popDialogLoading();
if ($(e.target).is('input')) {return true;};
var aData = dataTable_vNetworks.fnGetData(this);
var id = $(aData[0]).val();
if (!id) return true;
popDialogLoading();
Sunstone.runAction("Network.showinfo",id);
return false;
});

View File

@ -308,9 +308,11 @@ function imageInfoListener(){
if (target.is('input') || target.is('select') || target.is('option'))
return true;
popDialogLoading();
var aData = dataTable_images.fnGetData(this);
var id = $(aData[0]).val();
if (!id) return true;
popDialogLoading();
Sunstone.runAction("Image.showinfo",id);
return false;
});