mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
bug 7357: IP Address page - clean subgrid container when a tab is clicked.
This commit is contained in:
parent
48ae2e5295
commit
3a54c145a2
@ -1634,12 +1634,16 @@ function vmToRightPanel($midmenuItem1) {
|
||||
|
||||
function vmJsonToDetailsTab(){
|
||||
var $midmenuItem1 = $("#right_panel_content").data("$midmenuItem1");
|
||||
if ($midmenuItem1 == null)
|
||||
if ($midmenuItem1 == null) {
|
||||
vmJsonClearDetailsTab();
|
||||
return;
|
||||
}
|
||||
|
||||
var jsonObj = $midmenuItem1.data("jsonObj");
|
||||
if(jsonObj == null)
|
||||
if(jsonObj == null) {
|
||||
vmJsonClearDetailsTab();
|
||||
return;
|
||||
}
|
||||
|
||||
var $thisTab = $("#right_panel_content").find("#tab_content_details");
|
||||
$thisTab.find("#tab_container").hide();
|
||||
|
||||
@ -391,12 +391,16 @@ function ipToRightPanel($midmenuItem1) {
|
||||
|
||||
function ipJsonToPortForwardingTab() {
|
||||
var $midmenuItem1 = $("#right_panel_content").data("$midmenuItem1");
|
||||
if($midmenuItem1 == null)
|
||||
if($midmenuItem1 == null) {
|
||||
ipClearPortForwardingTab();
|
||||
return;
|
||||
}
|
||||
|
||||
var ipObj = $midmenuItem1.data("jsonObj");
|
||||
if(ipObj == null)
|
||||
if(ipObj == null) {
|
||||
ipClearPortForwardingTab();
|
||||
return;
|
||||
}
|
||||
|
||||
var networkObj = $midmenuItem1.data("networkObj");
|
||||
|
||||
@ -446,12 +450,16 @@ function ipJsonToPortForwardingTab() {
|
||||
|
||||
function ipJsonToLoadBalancerTab() {
|
||||
var $midmenuItem1 = $("#right_panel_content").data("$midmenuItem1");
|
||||
if($midmenuItem1 == null)
|
||||
if($midmenuItem1 == null) {
|
||||
ipClearLoadBalancerTab();
|
||||
return;
|
||||
}
|
||||
|
||||
var ipObj = $midmenuItem1.data("jsonObj");
|
||||
if(ipObj == null)
|
||||
if(ipObj == null) {
|
||||
ipClearLoadBalancerTab();
|
||||
return;
|
||||
}
|
||||
|
||||
var networkObj = $midmenuItem1.data("networkObj");
|
||||
|
||||
@ -574,19 +582,27 @@ function showEnableVPNDialog($thisTab) {
|
||||
|
||||
function ipJsonToVPNTab() {
|
||||
var $midmenuItem1 = $("#right_panel_content").data("$midmenuItem1");
|
||||
if($midmenuItem1 == null)
|
||||
if($midmenuItem1 == null) {
|
||||
ipClearVPNTab();
|
||||
return;
|
||||
}
|
||||
|
||||
var ipObj = $midmenuItem1.data("jsonObj");
|
||||
if(ipObj == null)
|
||||
if(ipObj == null) {
|
||||
ipClearVPNTab();
|
||||
return;
|
||||
}
|
||||
|
||||
var ipAddress = ipObj.ipaddress;
|
||||
if(ipAddress == null || ipAddress.length == 0)
|
||||
if(ipAddress == null || ipAddress.length == 0) {
|
||||
ipClearVPNTab();
|
||||
return;
|
||||
}
|
||||
|
||||
var $thisTab = $("#right_panel_content").find("#tab_content_vpn");
|
||||
|
||||
$thisTab.find("#tab_spinning_wheel").show();
|
||||
$thisTab.find("#tab_container").hide();
|
||||
|
||||
$.ajax({
|
||||
data: createURL("command=listRemoteAccessVpns&publicip="+ipAddress),
|
||||
dataType: "json",
|
||||
@ -604,6 +620,12 @@ function ipJsonToVPNTab() {
|
||||
});
|
||||
}
|
||||
|
||||
function ipClearVPNTab() {
|
||||
var $thisTab = $("#right_panel_content").find("#tab_content_vpn");
|
||||
showEnableVPNDialog($thisTab);
|
||||
$thisTab.find("#vpn_disabled_msg").hide();
|
||||
}
|
||||
|
||||
function showVpnUsers(presharedkey, publicip) {
|
||||
var $midmenuItem1 = $("#right_panel_content").data("$midmenuItem1");
|
||||
var ipObj = $midmenuItem1.data("jsonObj");
|
||||
@ -893,12 +915,16 @@ function ipClearRightPanel() {
|
||||
//***** Details tab (begin) ****************************************************************************************************************
|
||||
function ipJsonToDetailsTab() {
|
||||
var $midmenuItem1 = $("#right_panel_content").data("$midmenuItem1");
|
||||
if($midmenuItem1 == null)
|
||||
if($midmenuItem1 == null) {
|
||||
ipClearDetailsTab()
|
||||
return;
|
||||
}
|
||||
|
||||
var ipObj = $midmenuItem1.data("jsonObj");
|
||||
if(ipObj == null)
|
||||
if(ipObj == null) {
|
||||
ipClearDetailsTab()
|
||||
return;
|
||||
}
|
||||
|
||||
var networkObj = $midmenuItem1.data("networkObj");
|
||||
|
||||
|
||||
@ -337,12 +337,16 @@ function volumeToRightPanel($midmenuItem1) {
|
||||
|
||||
function volumeJsonToDetailsTab(){
|
||||
var $midmenuItem1 = $("#right_panel_content").data("$midmenuItem1");
|
||||
if($midmenuItem1 == null)
|
||||
if($midmenuItem1 == null) {
|
||||
volumeJsonClearDetailsTab();
|
||||
return;
|
||||
}
|
||||
|
||||
var jsonObj = $midmenuItem1.data("jsonObj");
|
||||
if(jsonObj == null)
|
||||
if(jsonObj == null) {
|
||||
volumeJsonClearDetailsTab();
|
||||
return;
|
||||
}
|
||||
|
||||
var $thisTab = $("#right_panel_content #tab_content_details");
|
||||
$thisTab.find("#tab_container").hide();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user