31 lines
749 B
JavaScript
Executable File
31 lines
749 B
JavaScript
Executable File
|
|
$(document).ready(function() {
|
|
|
|
$(".btn-more").click(function() {
|
|
|
|
$("#pageNo").val(parseInt($("#pageNo").val()) + 1);
|
|
|
|
$.ajax({
|
|
url: '/' + $("#type").val(),
|
|
type: 'GET',
|
|
data: {
|
|
pageNo: $("#pageNo").val(),
|
|
tagId: $("#tagId").val(),
|
|
search: $("#search").val(),
|
|
},
|
|
success: function(response) {
|
|
$(".list-home").append(response);
|
|
|
|
if ($("#haveMore").val() == 0) {
|
|
$(".btn-more").hide();
|
|
}
|
|
|
|
},
|
|
error: function(xhr, status, error) {
|
|
|
|
}
|
|
})
|
|
})
|
|
|
|
})
|