대출/열람 연결 : GET으로 변경
This commit is contained in:
parent
fd8d1aacc4
commit
5bf5534cdb
@ -229,8 +229,8 @@ function goList(){
|
||||
</ul>
|
||||
</div>
|
||||
<div class="b-btn">
|
||||
<button type="button" class="btn btn-color" onclick="gfn_rentItem('${result.masterId}')">대출예약</button>
|
||||
<button type="button" class="btn btn-green" onclick="gfn_reserveReadItem('${result.masterId}')">방문열람신청</button>
|
||||
<button type="button" class="btn btn-color" onclick="gfn_rentItem('${result.mngOrgCd}', '${result.masterId}')">대출예약</button>
|
||||
<button type="button" class="btn btn-green" onclick="gfn_reserveReadItem('${result.mngOrgCd}', '${result.masterId}')">방문열람신청</button>
|
||||
<button type="button" class="btn btn-orange" onclick="fn_addRentCart('${result.masterId}', '${result.useStatus}')">카트담기</button>
|
||||
</div>
|
||||
<c:if test="${fn:length(keywordList) > 0 }">
|
||||
|
||||
@ -131,8 +131,17 @@ function fn_gotoDetail(masterId) {
|
||||
}
|
||||
|
||||
function fn_listCartItems() {
|
||||
|
||||
|
||||
<c:if test='${fromCart == "Y" }'>
|
||||
$("#frm").attr("action","${pageContext.request.contextPath}/cart/listCartItems.do");
|
||||
$("#frm").submit();
|
||||
</c:if>
|
||||
|
||||
<c:if test='${fromCart != "Y" }'>
|
||||
history.back();
|
||||
</c:if>
|
||||
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
@ -121,8 +121,15 @@ function fn_changeInterest(masterId, onOff) {
|
||||
}
|
||||
|
||||
function fn_listCartItems() {
|
||||
|
||||
<c:if test='${fromCart == "Y" }'>
|
||||
$("#frm").attr("action","${pageContext.request.contextPath}/cart/listCartItems.do");
|
||||
$("#frm").submit();
|
||||
$("#frm").submit();
|
||||
</c:if>
|
||||
|
||||
<c:if test='${fromCart != "Y" }'>
|
||||
history.back();
|
||||
</c:if>
|
||||
}
|
||||
|
||||
function fn_gotoDetail(masterId) {
|
||||
|
||||
@ -601,7 +601,7 @@ function gfn_getDetail(masterId, host) {
|
||||
return;
|
||||
}
|
||||
|
||||
function gfn_rentItem(masterId) {
|
||||
function gfn_rentItem(mngOrgCd, masterId) {
|
||||
|
||||
if(fn_isEmpty(masterId)) {
|
||||
alert("자료ID 정보가 없습니다.");
|
||||
@ -611,13 +611,20 @@ function gfn_rentItem(masterId) {
|
||||
var form = document.createElement("form");
|
||||
form.style.display = "none";
|
||||
$(form).attr("action", "/rent/confirmRent.do");
|
||||
$(form).attr("method", "post");
|
||||
$(form).attr("method", "get");
|
||||
$(form).attr("target", "_blank");
|
||||
|
||||
var element = document.createElement("input");
|
||||
$(element).attr("name", "selItems");
|
||||
$(element).attr("value", masterId);
|
||||
var element1 = document.createElement("input");
|
||||
$(element1).attr("name", "mngOrgCd");
|
||||
$(element1).attr("value", mngOrgCd);
|
||||
|
||||
var element2 = document.createElement("input");
|
||||
$(element2).attr("name", "selItems");
|
||||
$(element2).attr("value", masterId);
|
||||
|
||||
form.appendChild(element1);
|
||||
form.appendChild(element2);
|
||||
|
||||
form.appendChild(element);
|
||||
document.body.appendChild(form);
|
||||
form.submit();
|
||||
|
||||
@ -626,7 +633,7 @@ function gfn_rentItem(masterId) {
|
||||
return;
|
||||
}
|
||||
|
||||
function gfn_reserveReadItem(masterId) {
|
||||
function gfn_reserveReadItem(mngOrgCd, masterId) {
|
||||
|
||||
if(fn_isEmpty(masterId)) {
|
||||
alert("자료ID 정보가 없습니다.");
|
||||
@ -636,13 +643,20 @@ function gfn_reserveReadItem(masterId) {
|
||||
var form = document.createElement("form");
|
||||
form.style.display = "none";
|
||||
$(form).attr("action", "/read/confirmRead.do");
|
||||
$(form).attr("method", "post");
|
||||
$(form).attr("method", "get");
|
||||
$(form).attr("target", "_blank");
|
||||
|
||||
var element = document.createElement("input");
|
||||
$(element).attr("name", "selItems");
|
||||
$(element).attr("value", masterId);
|
||||
var element1 = document.createElement("input");
|
||||
$(element1).attr("name", "mngOrgCd");
|
||||
$(element1).attr("value", mngOrgCd);
|
||||
|
||||
var element2 = document.createElement("input");
|
||||
$(element2).attr("name", "selItems");
|
||||
$(element2).attr("value", masterId);
|
||||
|
||||
form.appendChild(element1);
|
||||
form.appendChild(element2);
|
||||
|
||||
form.appendChild(element);
|
||||
document.body.appendChild(form);
|
||||
form.submit();
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user