mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	cloudstack 3.0 UI - network page, infrastructure page - guest network - restart network action - Hide "clean up" checkbox if it's Basic zone. Show "clean up" checkbox if it's Advanced zone.
This commit is contained in:
		
							parent
							
								
									b46a2340be
								
							
						
					
					
						commit
						ad74b396dc
					
				| @ -451,11 +451,11 @@ | |||||||
| 										});																				 | 										});																				 | ||||||
| 										if(zoneObj.networktype == "Basic") {										  								 | 										if(zoneObj.networktype == "Basic") {										  								 | ||||||
| 											args.$form.find('.form-item[rel=cleanup]').find('input').removeAttr('checked'); //unchecked
 | 											args.$form.find('.form-item[rel=cleanup]').find('input').removeAttr('checked'); //unchecked
 | ||||||
| 											args.$form.find('.form-item[rel=cleanup]').find('input').attr('Disabled', true); //gray-out
 | 											args.$form.find('.form-item[rel=cleanup]').hide(); //hidden
 | ||||||
| 										} | 										} | ||||||
| 										else {										  												 | 										else {										  												 | ||||||
| 											args.$form.find('.form-item[rel=cleanup]').find('input').attr('checked', 'checked'); //checked											
 | 											args.$form.find('.form-item[rel=cleanup]').find('input').attr('checked', 'checked'); //checked											
 | ||||||
| 											args.$form.find('.form-item[rel=cleanup]').find('input').removeAttr('Disabled'); //enabled
 | 											args.$form.find('.form-item[rel=cleanup]').css('display', 'inline-block'); //shown
 | ||||||
|                     }											 |                     }											 | ||||||
| 									}, | 									}, | ||||||
| 									fields: { | 									fields: { | ||||||
|  | |||||||
| @ -1444,11 +1444,11 @@ | |||||||
| 													preFilter: function(args) {		 | 													preFilter: function(args) {		 | ||||||
| 														if(selectedZoneObj.networktype == "Basic") {										  								 | 														if(selectedZoneObj.networktype == "Basic") {										  								 | ||||||
| 															args.$form.find('.form-item[rel=cleanup]').find('input').removeAttr('checked'); //unchecked
 | 															args.$form.find('.form-item[rel=cleanup]').find('input').removeAttr('checked'); //unchecked
 | ||||||
| 															args.$form.find('.form-item[rel=cleanup]').find('input').attr('Disabled', true); //gray-out
 | 															args.$form.find('.form-item[rel=cleanup]').hide(); //hidden
 | ||||||
| 														} | 														} | ||||||
| 														else {										  												 | 														else {										  												 | ||||||
| 															args.$form.find('.form-item[rel=cleanup]').find('input').attr('checked', 'checked'); //checked											
 | 															args.$form.find('.form-item[rel=cleanup]').find('input').attr('checked', 'checked'); //checked											
 | ||||||
| 															args.$form.find('.form-item[rel=cleanup]').find('input').removeAttr('Disabled'); //enabled
 | 															args.$form.find('.form-item[rel=cleanup]').css('display', 'inline-block'); //shown
 | ||||||
| 														}											 | 														}											 | ||||||
| 													}, | 													}, | ||||||
| 													fields: { | 													fields: { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user