mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
SelfSerice: Do not open info panels on empty list click.
(cherry picked from commit 60b8e15ee9)
This commit is contained in:
1 parent
1485b71826
commit
4e6071ee98
3 files changed
+12
-4
No files matched your search
@@ -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;
|
||||
});
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user