perf: update jQuery
update jQuery to the lastest, fix some little bugs issue #237
This commit is contained in:
		
							parent
							
								
									69b68c00c0
								
							
						
					
					
						commit
						a063060ad9
					
				
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| 
						 | 
					@ -8,7 +8,7 @@ body {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.nav-tab-wrapper {
 | 
					.nav-tab-wrapper {
 | 
				
			||||||
	position: relative;
 | 
						position: relative;
 | 
				
			||||||
    max-width: 930px;
 | 
					    max-width: 900px;
 | 
				
			||||||
    margin: auto !important;
 | 
					    margin: auto !important;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| 
						 | 
					@ -1051,13 +1051,15 @@ function load_bangumi() {
 | 
				
			||||||
            var xhr = new XMLHttpRequest();
 | 
					            var xhr = new XMLHttpRequest();
 | 
				
			||||||
            xhr.open('POST', this.href + "&_wpnonce=" + Poi.nonce, true);
 | 
					            xhr.open('POST', this.href + "&_wpnonce=" + Poi.nonce, true);
 | 
				
			||||||
            xhr.onreadystatechange = function() {
 | 
					            xhr.onreadystatechange = function() {
 | 
				
			||||||
                if (xhr.readyState == 4 && xhr.status == 200) {
 | 
					                if (xhr.readyState == 4 ) {
 | 
				
			||||||
 | 
					                    if(xhr.status == 200){
 | 
				
			||||||
                        var html = JSON.parse(xhr.responseText);
 | 
					                        var html = JSON.parse(xhr.responseText);
 | 
				
			||||||
                        $("#bangumi-pagination").remove();
 | 
					                        $("#bangumi-pagination").remove();
 | 
				
			||||||
                        $(".row").append(html);
 | 
					                        $(".row").append(html);
 | 
				
			||||||
                    }else{
 | 
					                    }else{
 | 
				
			||||||
                        $("#bangumi-pagination a").removeClass("loading").html('<i class="fa fa-exclamation-triangle" aria-hidden="true"></i> ERROR ');
 | 
					                        $("#bangumi-pagination a").removeClass("loading").html('<i class="fa fa-exclamation-triangle" aria-hidden="true"></i> ERROR ');
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
            };
 | 
					            };
 | 
				
			||||||
            xhr.send();
 | 
					            xhr.send();
 | 
				
			||||||
            return false;
 | 
					            return false;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue