|
@@ -140,10 +140,6 @@ $(document).ready(function() {
|
|
|
changeSiseListByDefault(currentSiseType);
|
|
|
$('.main-header').addClass('main_header');
|
|
|
$('.main-header .logo img').attr("src", "/themes/kbgolf/pro/resources/images/logo_wh.png");
|
|
|
- console.log('mainSiseList : ', mainSiseList);
|
|
|
- console.log('mainYoutubeList : ', mainYoutubeList);
|
|
|
- console.log('mainBlogList : ', mainBlogList);
|
|
|
-
|
|
|
});
|
|
|
|
|
|
// siseType별로 tbody 생성
|
|
@@ -157,16 +153,19 @@ function changeSiseList(e) {
|
|
|
var filteredSiseList = mainSiseList.filter(function(mainsise) {
|
|
|
return mainsise['Pc1'].includes(currentSiseType);
|
|
|
});
|
|
|
- console.log('filteredSiseList : ', filteredSiseList);
|
|
|
+
|
|
|
renderMainSiseList(filteredSiseList);
|
|
|
+ // sise 더보기 버튼 list를 change할 때마다 활성화
|
|
|
+ $('.m_quote .btn_wrap .m_more').show();
|
|
|
}
|
|
|
// defalut 가져오기
|
|
|
function changeSiseListByDefault(currentSiseType) {
|
|
|
- console.log('default is golf');
|
|
|
var filteredSiseList = mainSiseList.filter(function(mainsise) {
|
|
|
return mainsise['Pc1'].includes(currentSiseType);
|
|
|
});
|
|
|
renderMainSiseList(filteredSiseList);
|
|
|
+ // sise 더보기 버튼 list를 change할 때마다 활성화
|
|
|
+ $('.m_quote .btn_wrap .m_more').show();
|
|
|
}
|
|
|
|
|
|
// tbody 생성
|
|
@@ -217,16 +216,15 @@ function renderMainSiseList(siseList){
|
|
|
// 시세 더보기
|
|
|
function loadMoreSise(){
|
|
|
var offset = $('#sise-list tr').length;
|
|
|
- console.log('offset : ', offset);
|
|
|
- var limit = 3;
|
|
|
+ var limit = 12;
|
|
|
|
|
|
$.ajax({
|
|
|
url: '/load-more-sise',
|
|
|
method: 'GET',
|
|
|
data: { offset: offset, limit: limit, siseType: currentSiseType },
|
|
|
+
|
|
|
success: function(response) {
|
|
|
var siseList = response.Page;
|
|
|
-
|
|
|
if (siseList!=null) {
|
|
|
appendMainSiseList(siseList);
|
|
|
} else {
|