diff --git a/src/main/webapp/WEB-INF/jsp/nlib/collection/listInterests.jsp b/src/main/webapp/WEB-INF/jsp/nlib/collection/listInterests.jsp index 629a2f25..0a40e125 100644 --- a/src/main/webapp/WEB-INF/jsp/nlib/collection/listInterests.jsp +++ b/src/main/webapp/WEB-INF/jsp/nlib/collection/listInterests.jsp @@ -47,55 +47,55 @@ }); // document ready function selectAll(){ - if($("#allChk").is(":checked") == false) - { - $("#allChk").attr("checked", true); - selectAllChk(); - }else if($("#allChk").is(":checked") == true) - { - $("#allChk").attr("checked", false); - selectAllChk(); - } - } + if($("#allChk").is(":checked") == false) + { + $("#allChk").attr("checked", true); + selectAllChk(); + }else if($("#allChk").is(":checked") == true) + { + $("#allChk").attr("checked", false); + selectAllChk(); + } + } function deleteInterests(type,masterId){ - var masterIdArray = []; - - <% //체크박스를 이용한 삭제 %> - if(type=="multiple") - { - if($("input:checkbox[name=interestChk]:checked").length==0) - { - alert("선택된 관심자료가 없습니다."); - return false; - } - $("input:checkbox[name=interestChk]").each(function(){ - if($(this).is(":checked") == true) { - masterIdArray.push($(this).val()); - } - }); - } - else if(type=="single") - { - <% //관심버튼을 이용한 삭제 %> - masterIdArray.push(masterId); - } - - if(confirm("삭제하시겠습니까?")) - { - $.ajax({ - url : "${pageContext.request.contextPath}/interest/deleteInterests.ajax", - type : "POST", - async: false, - data : {"masterIdList" : masterIdArray}, - success : function(){ - alert("선택하신 관심자료가 삭제되었습니다."); - fn_searchArticle($("#pageSize").val(), 1); - - },error : function(){ - } - }); - } - } + var masterIdArray = []; + + <% //체크박스를 이용한 삭제 %> + if(type=="multiple") + { + if($("input:checkbox[name=interestChk]:checked").length==0) + { + alert("선택된 관심자료가 없습니다."); + return false; + } + $("input:checkbox[name=interestChk]").each(function(){ + if($(this).is(":checked") == true) { + masterIdArray.push($(this).val()); + } + }); + } + else if(type=="single") + { + <% //관심버튼을 이용한 삭제 %> + masterIdArray.push(masterId); + } + + if(confirm("삭제하시겠습니까?")) + { + $.ajax({ + url : "${pageContext.request.contextPath}/interest/deleteInterests.ajax", + type : "POST", + async: false, + data : {"masterIdList" : masterIdArray}, + success : function(){ + alert("선택하신 관심자료가 삭제되었습니다."); + fn_searchArticle($("#pageSize").val(), 1); + + },error : function(){ + } + }); + } + } <% //체크박스로 전체선택 %> function selectAllChk(){ @@ -141,7 +141,7 @@ var jsonObj = JSON.parse(data); // 건수 if(jsonObj.itemsCount == undefined) { - $("#itemsCount").text("0"); + $("#itemsCount").text("0"); } else { $("#itemsCount").text(jsonObj.itemsCount); @@ -153,24 +153,24 @@ // 출력 $.each(jsonObj.data,function(key,obj) { - var t_data = ""; - var count = 0; - t_data += "
"; - t_data += "" + obj.operOutRangeNm + "
" + obj.operReadRangeNm + "
" + obj.operOutRangeNm + obj.operReadRangeNm + "
"; - } - if(!fn_isEmpty(obj.interfaceId) && !fn_isEmpty(obj.openDivCd) && obj.openDivCd != '3') - { - t_btn+= ""; - } - t_btn+= ""; - + { + t_btn +="" + obj.operOutRangeNm + "
" + obj.operReadRangeNm + "
" + obj.operOutRangeNm + obj.operReadRangeNm + "
"; + } + if(!fn_isEmpty(obj.interfaceId) && !fn_isEmpty(obj.openDivCd) && obj.openDivCd != '3' && obj.digitalReadYn == 'Y') + { + t_btn+= ""; + } + t_btn+= ""; + var div = $(document.createElement('div')); div.attr('class','list'); div.append($('').attr('class', 't-chk').html("")); @@ -295,13 +295,13 @@ 검색결과가 없습니다.