Merge pull request #341 from levivm/master
fixed credit card input issue
This commit is contained in:
		
				commit
				
					
						65cca56ab8
					
				
			
		
					 2 changed files with 1 additions and 18 deletions
				
			
		| 
						 | 
					@ -52,5 +52,4 @@
 | 
				
			||||||
    * Initial stable release
 | 
					    * Initial stable release
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Next:
 | 
					    Next:
 | 
				
			||||||
       [datacenterlight] Fixed error trying to delete ssh key
 | 
					       [datacenterlight] Fixed credit card input issue
 | 
				
			||||||
       [datacenterlight] Fixed footer links
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,13 +9,11 @@
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    $(document).ready(function(){
 | 
					    $(document).ready(function(){
 | 
				
			||||||
      _initOs();
 | 
					      _initOs();
 | 
				
			||||||
      _ifOverflow();
 | 
					 | 
				
			||||||
       
 | 
					       
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    $(window).resize(function(){
 | 
					    $(window).resize(function(){
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
      _ifOverflow();
 | 
					 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
    });
 | 
					    });
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
| 
						 | 
					@ -67,20 +65,6 @@
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
		});
 | 
							});
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
   	function _ifOverflow(){
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
   		var dcContainer=  document.getElementById('dcContainer');
 | 
					 | 
				
			||||||
   		var containerOs=  document.getElementById('containerOs');
 | 
					 | 
				
			||||||
   		console.log('d-c', dcContainer.offsetWidth-20);
 | 
					 | 
				
			||||||
   		console.log('d-os', containerOs.scrollWidth);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
   		if(dcContainer.offsetWidth-20 < containerOs.scrollWidth){
 | 
					 | 
				
			||||||
   			console.log('oooVerrflowwww');
 | 
					 | 
				
			||||||
   		}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
   	}
 | 
					 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue