File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 17051705 dependsOn : [ 'lbenvironment' , 'isLbAdvanced' ] ,
17061706 select : function ( args ) {
17071707 var network ;
1708- $ . ajax ( {
1709- url : createURL ( "listGloboNetworkLBCacheGroups" ) ,
1710- data : {
1711- lbenvironment : args . data . lbenvironment ,
1712- networkid : args . data . network
1713- } ,
1714- dataType : "json" ,
1715- async : false ,
1716- success : function ( json ) {
1717- var data = [ ] ;
1718- $ ( json . listglobonetworklbcachegroupsresponse . globonetworkcachegroups ) . each ( function ( ) {
1719- data . push ( { id : this . name , name : this . name , description : this . name } ) ;
1720- } ) ;
1721- args . response . success ( {
1722- data : data
1723- } ) ;
1724- } ,
1725- error : function ( json ) {
1726- args . response . error ( parseXMLHttpResponse ( json ) ) ;
1727- }
1728- } ) ;
1708+ if ( args . data . lbenvironment !== '' ) {
1709+ $ . ajax ( {
1710+ url : createURL ( "listGloboNetworkLBCacheGroups" ) ,
1711+ data : {
1712+ lbenvironment : args . data . lbenvironment ,
1713+ networkid : args . data . network
1714+ } ,
1715+ dataType : "json" ,
1716+ async : false ,
1717+ success : function ( json ) {
1718+ var data = [ ] ;
1719+ $ ( json . listglobonetworklbcachegroupsresponse . globonetworkcachegroups ) . each ( function ( ) {
1720+ data . push ( { id : this . name , name : this . name , description : this . name } ) ;
1721+ } ) ;
1722+ args . response . success ( {
1723+ data : data
1724+ } ) ;
1725+ } ,
1726+ error : function ( json ) {
1727+ args . response . error ( parseXMLHttpResponse ( json ) ) ;
1728+ }
1729+ } ) ;
1730+ }
17291731 }
17301732 } ,
17311733
You can’t perform that action at this time.
0 commit comments