mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
oZones: do not open info tab when clicking on empty tables
(cherry picked from commit 7010b29b8f)
This commit is contained in:
1 parent
b8bb3b74c2
commit
52cd5673cb
2 files changed
+9
-3
No files matched your search
@@ -234,11 +234,14 @@ function vdcElementArray(vdc_json){
|
||||
}
|
||||
|
||||
function vdcInfoListener() {
|
||||
$("#tbodyvdcs tr").live("click", function(e){
|
||||
$("#tbodyvdcs tr").live("click", function(e){
|
||||
if ($(e.target).is('input')) {return true;}
|
||||
popDialogLoading();
|
||||
|
||||
var aData = dataTable_vdcs.fnGetData(this);
|
||||
var id = $(aData[0]).val();
|
||||
if (!id) return true;
|
||||
|
||||
popDialogLoading();
|
||||
Sunstone.runAction("VDC.showinfo",id);
|
||||
return false;
|
||||
});
|
||||
|
||||
@@ -244,9 +244,12 @@ function zoneElementArray(zone_json){
|
||||
function zoneInfoListener(){
|
||||
$("#tbodyzones tr").live("click", function(e){
|
||||
if ($(e.target).is('input')) {return true;}
|
||||
popDialogLoading();
|
||||
|
||||
var aData = dataTable_zones.fnGetData(this);
|
||||
var id = $(aData[0]).val();
|
||||
if (!id) return true;
|
||||
|
||||
popDialogLoading();
|
||||
Sunstone.runAction("Zone.showinfo",id);
|
||||
return false;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user