js 추가
This commit is contained in:
parent
f96735a01a
commit
605e68a090
@ -166,7 +166,6 @@ function fn_layerPopFormSubmit(formName, display) {
|
|||||||
url: url,
|
url: url,
|
||||||
data: dataList
|
data: dataList
|
||||||
}).done(function(response){
|
}).done(function(response){
|
||||||
alert("response:" + response);
|
|
||||||
$("#NLIB_LAYER_POPUP").empty().append(response);
|
$("#NLIB_LAYER_POPUP").empty().append(response);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -214,7 +213,7 @@ function risShow(risId){
|
|||||||
html+='<form name="risDownloadForm" id="risDownloadForm" method="post"><input type="hidden" id="risId" name="risId"></form>';
|
html+='<form name="risDownloadForm" id="risDownloadForm" method="post"><input type="hidden" id="risId" name="risId"></form>';
|
||||||
html+='<div class="pop-serge">';
|
html+='<div class="pop-serge">';
|
||||||
html+='<div class="row Title">';
|
html+='<div class="row Title">';
|
||||||
html+=' <h3>서지정보 내ㅋㅌㅊ보내기<span>(Export)</span></h3>';
|
html+=' <h3>서지정보 내보내기<span>(Export)</span></h3>';
|
||||||
html+='</div>';
|
html+='</div>';
|
||||||
html+='<div class="inner">';
|
html+='<div class="inner">';
|
||||||
html+=' <div class="row Text">';
|
html+=' <div class="row Text">';
|
||||||
@ -254,6 +253,12 @@ function risClose(){
|
|||||||
$("#export-data").remove();
|
$("#export-data").remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function forgetPassword(form)
|
||||||
|
{
|
||||||
|
$("#"+form).attr("action", "/member/initPasswordForm.do");
|
||||||
|
fn_layerPopFormSubmit(form,true);
|
||||||
|
}
|
||||||
|
|
||||||
function risDownload(risId){
|
function risDownload(risId){
|
||||||
$("#risId").val(risId);
|
$("#risId").val(risId);
|
||||||
|
|
||||||
@ -261,6 +266,53 @@ function risDownload(risId){
|
|||||||
document.risDownloadForm.submit();
|
document.risDownloadForm.submit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function fn_changeInterest(masterId,onOff){
|
||||||
|
var html="";
|
||||||
|
|
||||||
|
if(onOff == "on")
|
||||||
|
{
|
||||||
|
$.ajax({
|
||||||
|
type: "POST",
|
||||||
|
url: "/interest/insertInterest.ajax",
|
||||||
|
async: false,
|
||||||
|
data: {"masterId" : masterId}
|
||||||
|
}).done(function(result){
|
||||||
|
alert(result);
|
||||||
|
if(result == "관심자료에 추가되었습니다.")
|
||||||
|
{
|
||||||
|
$("#favorites_"+masterId).removeAttr("onclick");
|
||||||
|
$("#favorites_"+masterId).attr("onclick","fn_changeInterest('" + masterId + "','off')");
|
||||||
|
$("#favorites_"+masterId).attr("title","관심자료에서 삭제합니다.");
|
||||||
|
html += "<img src=\"/images/icon/icon-cart-Favorites-on.png\" class=\"off\" alt=\"즐겨찾기 아이콘\">"
|
||||||
|
html += "<img src=\"/images/icon/icon-cart-Favorites.png\" class=\"on\" alt=\"즐겨찾기 아이콘\">";
|
||||||
|
$("#favorites_"+masterId).html(html);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if(onOff == "off")
|
||||||
|
{
|
||||||
|
var masterIdArray = [];
|
||||||
|
masterIdArray.push(masterId);
|
||||||
|
$.ajax({
|
||||||
|
url : "/interest/deleteInterests.ajax",
|
||||||
|
type : "POST",
|
||||||
|
async: false,
|
||||||
|
data : {"masterIdList" : masterIdArray},
|
||||||
|
success : function(){
|
||||||
|
alert("선택하신 관심자료가 삭제되었습니다.");
|
||||||
|
$("#favorites_"+masterId).removeAttr("onclick");
|
||||||
|
$("#favorites_"+masterId).attr("onclick","fn_changeInterest('" + masterId + "','on')");
|
||||||
|
$("#favorites_"+masterId).attr("title","관심자료로 등록합니다.");
|
||||||
|
html += "<img src=\"/images/icon/icon-cart-Favorites.png\" class=\"off\" alt=\"즐겨찾기 아이콘\">"
|
||||||
|
html += "<img src=\"/images/icon/icon-cart-Favorites-on.png\" class=\"on\" alt=\"즐겨찾기 아이콘\">";
|
||||||
|
$("#favorites_"+masterId).html(html);
|
||||||
|
},error : function(){
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
function insertInterest(masterId){
|
function insertInterest(masterId){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "post",
|
type: "post",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user