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:
parent
1485b71826
commit
4e6071ee98
@ -427,9 +427,12 @@ function vMachineInfoListener(){
|
|||||||
|
|
||||||
$('#tbodyvmachines tr',dataTable_vMachines).live("click", function(e){
|
$('#tbodyvmachines tr',dataTable_vMachines).live("click", function(e){
|
||||||
if ($(e.target).is('input') || $(e.target).is('a img')) {return true;}
|
if ($(e.target).is('input') || $(e.target).is('a img')) {return true;}
|
||||||
popDialogLoading();
|
|
||||||
var aData = dataTable_vMachines.fnGetData(this);
|
var aData = dataTable_vMachines.fnGetData(this);
|
||||||
var id = $(aData[0]).val();
|
var id = $(aData[0]).val();
|
||||||
|
if (!id) return true;
|
||||||
|
|
||||||
|
popDialogLoading();
|
||||||
Sunstone.runAction("VM.showinfo",id);
|
Sunstone.runAction("VM.showinfo",id);
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
@ -237,10 +237,13 @@ function vNetworkElementArray(vn_json){
|
|||||||
function vNetworkInfoListener(){
|
function vNetworkInfoListener(){
|
||||||
|
|
||||||
$('#tbodyvnetworks tr',dataTable_vNetworks).live("click", function(e){
|
$('#tbodyvnetworks tr',dataTable_vNetworks).live("click", function(e){
|
||||||
if ($(e.target).is('input')) {return true;}
|
if ($(e.target).is('input')) {return true;};
|
||||||
popDialogLoading();
|
|
||||||
var aData = dataTable_vNetworks.fnGetData(this);
|
var aData = dataTable_vNetworks.fnGetData(this);
|
||||||
var id = $(aData[0]).val();
|
var id = $(aData[0]).val();
|
||||||
|
if (!id) return true;
|
||||||
|
|
||||||
|
popDialogLoading();
|
||||||
Sunstone.runAction("Network.showinfo",id);
|
Sunstone.runAction("Network.showinfo",id);
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
@ -308,9 +308,11 @@ function imageInfoListener(){
|
|||||||
if (target.is('input') || target.is('select') || target.is('option'))
|
if (target.is('input') || target.is('select') || target.is('option'))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
popDialogLoading();
|
|
||||||
var aData = dataTable_images.fnGetData(this);
|
var aData = dataTable_images.fnGetData(this);
|
||||||
var id = $(aData[0]).val();
|
var id = $(aData[0]).val();
|
||||||
|
if (!id) return true;
|
||||||
|
|
||||||
|
popDialogLoading();
|
||||||
Sunstone.runAction("Image.showinfo",id);
|
Sunstone.runAction("Image.showinfo",id);
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user