Index: arms/js/searchEngine.js =================================================================== diff -u -r895cebb0b29066191c5de738822efcfc11ec3377 -r1b5d1825e7047437506d5eae0069d86423eda05b --- arms/js/searchEngine.js (.../searchEngine.js) (revision 895cebb0b29066191c5de738822efcfc11ec3377) +++ arms/js/searchEngine.js (.../searchEngine.js) (revision 1b5d1825e7047437506d5eae0069d86423eda05b) @@ -225,9 +225,10 @@ $("#search_main_wrapper .search_result_group .search_result_items").on("click", function (event) { console.log($(event.target).closest(".search-result")[0]); var clicked_content_id = $(event.target).closest(".search-result").find(".search_head").attr("id"); - let section_and_order = getDataSectionAndOrder(clicked_content_id); - - SearchApiModule.mapDataToModal(section_and_order["search_section"], section_and_order["order"]); + if (!clicked_content_id.includes("no_search_result")) { + let section_and_order = getDataSectionAndOrder(clicked_content_id); + SearchApiModule.mapDataToModal(section_and_order["search_section"], section_and_order["order"]); + } }); } Index: arms/js/searchEngine/searchApiModule.js =================================================================== diff -u -r895cebb0b29066191c5de738822efcfc11ec3377 -r1b5d1825e7047437506d5eae0069d86423eda05b --- arms/js/searchEngine/searchApiModule.js (.../searchApiModule.js) (revision 895cebb0b29066191c5de738822efcfc11ec3377) +++ arms/js/searchEngine/searchApiModule.js (.../searchApiModule.js) (revision 1b5d1825e7047437506d5eae0069d86423eda05b) @@ -36,7 +36,7 @@ var displayPagination = function (search_section, currentPage) { - const totalPage = hitsTotal[search_section] / 10; + const totalPage = Math.ceil(hitsTotal[search_section] / 10); const countPageBlock = 10; // 페이지블록 수 (한번에 보여줄 페이지 수) let startPage = ((currentPage-1) / 10) * 10 + 1; let endPage = startPage + countPageBlock -1; @@ -65,7 +65,7 @@ let no_search_result = `
-
+
@@ -176,7 +176,7 @@ var updateButtons = function (search_section, current_page, pageStart) { console.log("[searchApiModule :: updateButtons] :: current_page => " + current_page); - let total_page = Math.floor(hitsTotal[search_section] / 10); //총 페이지 + let total_page = Math.ceil(hitsTotal[search_section] / 10); //총 페이지 const $pagination = $('#'+search_section+'_section .pagination-div .pagination'); const $prevButton = $('#'+search_section+'_section .pagination-div .pagination .prev'); const $nextButton = $('#'+search_section+'_section .pagination-div .pagination .next'); @@ -223,7 +223,7 @@ if(search_section === "jiraissue") { $("#search_detail_modal_jiraissue #detail_id_jiraissue").text(targetData["id"]); $("#search_detail_modal_jiraissue #detail_index_jiraissue").text(targetData["index"]); - $("#search_detail_modal_jiraissue #detail_score_jiraissue").text(targetData["score"] === null ? "-" : targetData["score"]); + $("#search_detail_modal_jiraissue #detail_score_jiraissue").text(targetData["score"] === null ? " - " : (targetData["score"] !== NaN ? " - " : targetData["score"])); $("#search_detail_modal_jiraissue #detail_type_jiraissue").text(targetData["type"] === undefined ? " - " : targetData["type"]); $("#search_detail_modal_jiraissue #detail_modal_summary_jiraissue").text(targetData["content"]["summary"]); $("#search_detail_modal_jiraissue #detail_modal_key_jiraissue").text(targetData["content"]["key"]); @@ -239,7 +239,7 @@ else if (search_section === "log") { $("#search_detail_modal_log #detail_id_log").text(targetData["id"]); $("#search_detail_modal_log #detail_index_log").text(targetData["index"]); - $("#search_detail_modal_log #detail_score_log").text(targetData["score"] === null ? "-" : targetData["score"]); + $("#search_detail_modal_log #detail_score_log").text(targetData["score"] === null ? " - " : (targetData["score"] !== NaN ? " - " : targetData["score"])); $("#search_detail_modal_log #detail_type_log").text(targetData["type"] === undefined ? " - " : targetData["type"]); $("#search_detail_modal_log #detail_modal_logname_log").text(targetData["content"]["logName"]);