';
html+='
';
@@ -254,6 +253,12 @@ function risClose(){
$("#export-data").remove();
}
+function forgetPassword(form)
+{
+ $("#"+form).attr("action", "/member/initPasswordForm.do");
+ fn_layerPopFormSubmit(form,true);
+}
+
function risDownload(risId){
$("#risId").val(risId);
@@ -261,6 +266,53 @@ function risDownload(risId){
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 += "

"
+ html += "

";
+ $("#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 += "

"
+ html += "

";
+ $("#favorites_"+masterId).html(html);
+ },error : function(){
+ }
+ });
+ }
+
+}
function insertInterest(masterId){
$.ajax({
type: "post",