@@ -502,9 +502,8 @@ function addZoneWizardSubmit($thisWizard) {
502502 dataType : "json" ,
503503 async : false ,
504504 success : function ( json ) {
505- afterActionMsg += "Zone was created successfully<br>" ;
506- $thisWizard . find ( "#spinning_wheel" ) . hide ( ) ;
507-
505+ afterActionMsg += "Zone was created successfully<br><br>" ;
506+
508507 $zoneNode = $ ( "#leftmenu_zone_node_template" ) . clone ( true ) ;
509508 var $zoneTree = $ ( "#leftmenu_zone_tree" ) . find ( "#tree_container" ) ;
510509 $zoneTree . prepend ( $zoneNode ) ;
@@ -517,8 +516,7 @@ function addZoneWizardSubmit($thisWizard) {
517516 } ,
518517 error : function ( XMLHttpResponse ) {
519518 handleError ( XMLHttpResponse , function ( ) {
520- afterActionMsg += ( "Failed to create zone. " + parseXMLHttpResponse ( XMLHttpResponse ) + "<br>" ) ;
521- $thisWizard . find ( "#spinning_wheel" ) . hide ( ) ;
519+ afterActionMsg += ( "Failed to create zone. " + parseXMLHttpResponse ( XMLHttpResponse ) + "<br><br>" ) ;
522520 } ) ;
523521 }
524522 } ) ;
@@ -544,8 +542,7 @@ function addZoneWizardSubmit($thisWizard) {
544542 dataType : "json" ,
545543 async : false ,
546544 success : function ( json ) {
547- afterActionMsg += "Pod was created successfully<br>" ;
548- $thisWizard . find ( "#spinning_wheel" ) . hide ( ) ;
545+ afterActionMsg += "Pod was created successfully<br><br>" ;
549546
550547 var item = json . createpodresponse . pod ;
551548 podId = item . id ;
@@ -569,8 +566,7 @@ function addZoneWizardSubmit($thisWizard) {
569566 } ,
570567 error : function ( XMLHttpResponse ) {
571568 handleError ( XMLHttpResponse , function ( ) {
572- afterActionMsg += ( "Failed to create Pod. " + parseXMLHttpResponse ( XMLHttpResponse ) + "<br>" ) ;
573- $thisWizard . find ( "#spinning_wheel" ) . hide ( ) ;
569+ afterActionMsg += ( "Failed to create Pod. " + parseXMLHttpResponse ( XMLHttpResponse ) + "<br><br>" ) ;
574570 } ) ;
575571 }
576572 } ) ;
@@ -595,20 +591,21 @@ function addZoneWizardSubmit($thisWizard) {
595591 $ . ajax ( {
596592 data : createURL ( "command=createVlanIpRange" + array1 . join ( "" ) ) ,
597593 dataType : "json" ,
594+ async : false ,
598595 success : function ( json ) {
599- afterActionMsg += "Guest IP range was created successfully<br>" ;
596+ afterActionMsg += "Guest IP range was created successfully<br><br> " ;
600597 var item = json . createvlaniprangeresponse . vlan ;
601598 vlanId = item . id ;
602599 } ,
603600 error : function ( XMLHttpResponse ) {
604601 handleError ( XMLHttpResponse , function ( ) {
605- afterActionMsg += ( "Failed to create Guest IP range. " + parseXMLHttpResponse ( XMLHttpResponse ) + "<br>" ) ;
606- $thisWizard . find ( "#spinning_wheel" ) . hide ( ) ;
602+ afterActionMsg += ( "Failed to create Guest IP range. " + parseXMLHttpResponse ( XMLHttpResponse ) + "<br><br>" ) ;
607603 } ) ;
608604 }
609605 } ) ;
610606 }
611-
607+
608+ $thisWizard . find ( "#spinning_wheel" ) . hide ( ) ;
612609 $thisWizard . find ( "#after_action_message" ) . html ( afterActionMsg ) ;
613610}
614611
0 commit comments