fixed the initialized state of the remember-me checkbox
This commit is contained in:
		
							parent
							
								
									ed1c3374dd
								
							
						
					
					
						commit
						23318c01f0
					
				| @ -69,7 +69,7 @@ | ||||
|             <img src="./img/pressed-check.png" class="check js-remember-status"> | ||||
|             <!-- <span class="fa fa-2x fa-purple fa-square-o dap-remember-margin js-remember-status"></span> --> | ||||
|             <span class="dap-remember-me noselect">Remember this device.</span> | ||||
|             <input class="js-remember-checkbox hidden" type="checkbox"></input> | ||||
|             <input class="js-remember-checkbox hidden" type="checkbox" checked></input> | ||||
|           </label> | ||||
|         </div> | ||||
|         <button type="submit" class="btn btn-primary submit-btn dap-full-button-green js-submit-code-btn" disabled>Submit</button> | ||||
|  | ||||
| @ -40,10 +40,10 @@ $('body').on('click', '.js-remember-label', function (ev) { | ||||
|   var $this = $(this); | ||||
|   if ($this.find('.js-remember-checkbox').is(':checked') === true) { | ||||
|     $this.find('.js-remember-checkbox').prop( "checked", false ); | ||||
|     $this.find('js-remember-status').attr("src", "./img/unpressed-check.png"); | ||||
|     $this.find('.js-remember-status').attr("src", "./img/unpressed-check.png"); | ||||
|   } else { | ||||
|     $this.find('.js-remember-checkbox').prop( "checked", true ); | ||||
|     $this.find('js-remember-status').attr("src", "./img/pressed-check.png"); | ||||
|     $this.find('.js-remember-status').attr("src", "./img/pressed-check.png"); | ||||
|   } | ||||
| }); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user