fix: 관리자 게시판 등록 권한 및 URL 표시 개선
This commit is contained in:
@@ -948,7 +948,8 @@
|
||||
<input type="radio" id="write${cgn024.cd }"
|
||||
name="bbscttRegistAuthorDvCd"
|
||||
value="${cgn024.cd }" ${attrCheck }
|
||||
onclick="fn_click_check('bbscttRegistAuthorDvCd', 'all');">
|
||||
onclick="fn_change_event('bbscttRegistAuthorDvCd');
|
||||
fn_click_check('bbscttRegistAuthorDvCd', 'all');">
|
||||
<label for="write${cgn024.cd }"><c:out
|
||||
value="${cgn024.cdNm }"/></label>
|
||||
</div>
|
||||
@@ -2042,13 +2043,25 @@
|
||||
url : url,
|
||||
data : paramsArray,
|
||||
success : function(data) {
|
||||
const result = JSON.parse(data.resBody.result);
|
||||
const bbsId = result.bbsid;
|
||||
if (result.message !== 'success' || !bbsId) {
|
||||
alert('게시판 등록에 실패했습니다. 다시 시도해 주세요.');
|
||||
return;
|
||||
}
|
||||
|
||||
alert('<spring:message code="success.common.insert"/>');
|
||||
const bbsId = JSON.parse(data.resBody.result).bbsid;
|
||||
<%-- fn_move_dtlupdt(bbsId); --%>
|
||||
$('#backUpData').find('[name=bbsId]').val(JSON.parse(data.resBody.result).bbsid);
|
||||
$('#backUpData').find('[name=bbsId]').val(bbsId);
|
||||
$('#backUpData').find('[name=pageDv]').val('I');
|
||||
$('#backUpData').attr('action', '<c:url value="/mngr/bbs/bbsmngr/selectBbsDtlUpdtForm"/>');
|
||||
$('#backUpData').submit();
|
||||
},
|
||||
error : function(data) {
|
||||
const message = data.responseJSON
|
||||
&& data.responseJSON.resBody
|
||||
&& data.responseJSON.resBody.result;
|
||||
alert(message || '게시판 등록 중 오류가 발생했습니다.');
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -2078,4 +2091,4 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user