@@ -493,12 +493,12 @@ function initAddPodShortcut() {
493493
494494 $ ( "#add_pod_shortcut" ) . unbind ( "click" ) . bind ( "click" , function ( event ) {
495495 $dialogAddPod . find ( "#info_container" ) . hide ( ) ;
496- //$dialogAddPod.find("#add_pod_name, #dd_pod_gateway,#add_pod_netmask,#add_pod_startip,add_pod_endip").val("");
497496
498497 $dialogAddPod
499498 . dialog ( 'option' , 'buttons' , {
500499 "Add" : function ( ) {
501500 var $thisDialog = $ ( this ) ;
501+ $thisDialog . find ( "#info_container" ) . hide ( ) ;
502502
503503 // validate values
504504 var isValid = true ;
@@ -554,7 +554,8 @@ function initAddPodShortcut() {
554554 var podTotal = parseInt ( $ ( "#pod_total" ) . text ( ) ) ;
555555 podTotal ++ ;
556556 $ ( "#pod_total" ) . text ( podTotal . toString ( ) ) ;
557-
557+
558+ /*
558559 forceLogout = false; // We don't force a logout if pod(s) exit.
559560 if (forceLogout) {
560561 $("#dialog_confirmation")
@@ -566,6 +567,7 @@ function initAddPodShortcut() {
566567 }
567568 }).dialog("open");
568569 }
570+ */
569571
570572 //Create IP Range
571573 if ( $thisDialog . find ( "#guestip_container" ) . css ( "display" ) != "none" ) {
@@ -713,6 +715,7 @@ function initAddClusterShortcut() {
713715 $dialogAddCluster . dialog ( 'option' , 'buttons' , {
714716 "Add" : function ( ) {
715717 var $thisDialog = $ ( this ) ;
718+ $thisDialog . find ( "#info_container" ) . hide ( ) ;
716719
717720 // validate values
718721 var hypervisor = $thisDialog . find ( "#cluster_hypervisor" ) . val ( ) ;
@@ -1572,6 +1575,8 @@ function initUpdateConsoleCertButton($midMenuAddLink2) {
15721575 . dialog ( 'option' , 'buttons' , {
15731576 "Add" : function ( ) {
15741577 var $thisDialog = $ ( this ) ;
1578+ $thisDialog . find ( "#info_container" ) . hide ( ) ;
1579+
15751580 var isValid = true ;
15761581 isValid &= validateString ( "SSL Certificate" , $thisDialog . find ( "#update_cert" ) , $thisDialog . find ( "#update_cert_errormsg" ) , false , 4096 ) ;
15771582 if ( ! isValid ) return ;
@@ -1727,6 +1732,7 @@ function initAddPrimaryStorageShortcut($midmenuAddLink2, currentPageInRightPanel
17271732 . dialog ( 'option' , 'buttons' , {
17281733 "Add" : function ( ) {
17291734 var $thisDialog = $ ( this ) ;
1735+ $thisDialog . find ( "#info_container" ) . hide ( ) ;
17301736
17311737 // validate values
17321738 var protocol = $thisDialog . find ( "#add_pool_protocol" ) . val ( ) ;
0 commit comments