This commit is contained in:
BoHung Chiu 2021-04-25 12:30:33 +08:00
parent a6fde99d96
commit f3aa2ad366
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@
var div_block = $(ele).parents(".bottomnav").parent(); var div_block = $(ele).parents(".bottomnav").parent();
var index = div_block.data("count"); var index = div_block.data("count");
$.get(href).done(function(data){ $.get(href).done(function(data){
var $d = $(data); var $d = $("<div></div>").append(data);
div_block.html($d.find('[data-count='+index+']').html()); div_block.html($d.find('[data-count='+index+']').html());
$(".pagination a").attr("onclick","a_tag_xhr_request(this);return false;"); $(".pagination a").attr("onclick","a_tag_xhr_request(this);return false;");
adjust_height(); adjust_height();

View File

@ -121,7 +121,7 @@
var div_block = $(ele).parents(".bottomnav").parent(); var div_block = $(ele).parents(".bottomnav").parent();
var index = div_block.data("count"); var index = div_block.data("count");
$.get(href).done(function(data){ $.get(href).done(function(data){
var $d = $(data); var $d = $("<div></div>").append(data);
div_block.html($d.find('[data-count='+index+']').html()); div_block.html($d.find('[data-count='+index+']').html());
$(".pagination a").attr("onclick","a_tag_xhr_request(this);return false;"); $(".pagination a").attr("onclick","a_tag_xhr_request(this);return false;");
adjust_height(); adjust_height();