Move the showKindleMail() call outside the conditional for updating the local variable. Fixes Click to Set not being shown if kindle mail is empty.
This commit is contained in:
		
							parent
							
								
									a9dc5f6f65
								
							
						
					
					
						commit
						a5dba428f6
					
				| 
						 | 
					@ -78,8 +78,8 @@ function getContents() {
 | 
				
			||||||
                    if ( admin ) $("#parsebooks").removeClass("hide");
 | 
					                    if ( admin ) $("#parsebooks").removeClass("hide");
 | 
				
			||||||
                    if ( data.kindlemail != kindlemail ) {
 | 
					                    if ( data.kindlemail != kindlemail ) {
 | 
				
			||||||
                       kindlemail = data.kindlemail;
 | 
					                       kindlemail = data.kindlemail;
 | 
				
			||||||
                       showKindleMail();
 | 
					 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
					                    showKindleMail();
 | 
				
			||||||
                    if ( data.bookdir != currentpath ) {
 | 
					                    if ( data.bookdir != currentpath ) {
 | 
				
			||||||
                       currentpath = data.bookdir;
 | 
					                       currentpath = data.bookdir;
 | 
				
			||||||
                       if ( data.bookdirname != "" ) {
 | 
					                       if ( data.bookdirname != "" ) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user