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 {
|
||||
position: relative;
|
||||
max-width: 930px;
|
||||
max-width: 900px;
|
||||
margin: auto !important;
|
||||
}
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1051,12 +1051,14 @@ function load_bangumi() {
|
|||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('POST', this.href + "&_wpnonce=" + Poi.nonce, true);
|
||||
xhr.onreadystatechange = function() {
|
||||
if (xhr.readyState == 4 && xhr.status == 200) {
|
||||
var html = JSON.parse(xhr.responseText);
|
||||
$("#bangumi-pagination").remove();
|
||||
$(".row").append(html);
|
||||
}else{
|
||||
$("#bangumi-pagination a").removeClass("loading").html('<i class="fa fa-exclamation-triangle" aria-hidden="true"></i> ERROR ');
|
||||
if (xhr.readyState == 4 ) {
|
||||
if(xhr.status == 200){
|
||||
var html = JSON.parse(xhr.responseText);
|
||||
$("#bangumi-pagination").remove();
|
||||
$(".row").append(html);
|
||||
}else{
|
||||
$("#bangumi-pagination a").removeClass("loading").html('<i class="fa fa-exclamation-triangle" aria-hidden="true"></i> ERROR ');
|
||||
}
|
||||
}
|
||||
};
|
||||
xhr.send();
|
||||
|
|
Loading…
Reference in New Issue