mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	cloudStack 3.0 UI - validation - apply new method "disallowSpecialCharacters" to all textfields in dialog widget.
This commit is contained in:
		
							parent
							
								
									f0cb103a98
								
							
						
					
					
						commit
						8e2fc79174
					
				@ -172,11 +172,11 @@
 | 
			
		||||
              fields: {
 | 
			
		||||
                name: {
 | 
			
		||||
                  label: 'label.name',
 | 
			
		||||
                  validation: { required: true, disallowSpecialCharacters: true }
 | 
			
		||||
                  validation: { required: true }
 | 
			
		||||
                },
 | 
			
		||||
                networkdomain: {
 | 
			
		||||
                  label: 'label.network.domain',
 | 
			
		||||
                  validation: { required: false, disallowSpecialCharacters: true }
 | 
			
		||||
                  validation: { required: false }
 | 
			
		||||
                }
 | 
			
		||||
              }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
@ -280,6 +280,7 @@
 | 
			
		||||
              $input.val(field.defaultValue);
 | 
			
		||||
            }
 | 
			
		||||
          }					
 | 
			
		||||
					$input.addClass("disallowSpecialCharacters");					
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        $input.data('validation-rules', field.validation);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user