반응형
/modules/document/tpl/saved_list_popup.html
파일을 열고
thead 부분을 아래 처럼 변경
<thead>
<tr>
<th class="title">{$lang->date}</th>
<th class="title">{$lang->title}</th>
<th class="title">{$lang->cmd_select}</th>
<th class="title">{$lang->cmd_delete}</th>
</tr>
</thead>
추가된 문구
<th class="title">{$lang->cmd_delete}</th>
tbody 부분을 아래처럼 변경
<tbody>
<!--@foreach($document_list as $no => $val)-->
<tr>
<td>{$val->getRegdate("Y-m-d H:i:s")}</td>
<td > <a href="#" onclick="jQuery('#saved_document_{$val->document_srl}').toggle(); setFixedPopupSize(); return false;">{$val->getTitle()}</a>
<div id="saved_document_{$val->document_srl}" class="saved_content" style="display:none;">{$val->getContent(false)}</div>
</td>
<td><a href="#" onclick="doDocumentSelect('{$val->document_srl}', '{$val->getDocumentType()}'); return false;" class="buttonSet buttonActive"><span>{$lang->cmd_select}</span></a></td>
<td><a href="#" onclick="doDeleteSavedDocument({$val->document_srl},'{lang('common.confirm_delete')}'); return false;" class="buttonSet buttonActive"><span>{$lang->cmd_delete}</span></a></td>
</tr>
<!--@end-->
</tbody>
추가된 문구
<td><a href="#" onclick="doDeleteSavedDocument({$val->document_srl},'{lang('common.confirm_delete')}'); return false;" class="buttonSet buttonActive"><span>{$lang->cmd_delete}</span></a></td>
common/js/common.js 경로에 가서 /* 저장된 게시글 불러오기 */ 의 코드가 끝나는 부분에 붙여준다.
/* 저장된 게시글 불러오기 */
var objForSavedDoc = null;
function doDocumentLoad(obj) {
// 저장된 게시글 목록 불러오기
objForSavedDoc = obj.form;
popopen(request_uri.setQuery('module','document').setQuery('act','dispTempSavedList'));
}
/* 저장된 게시글의 선택 */
function doDocumentSelect(document_srl, module) {
if(!opener || !opener.objForSavedDoc) {
window.close();
return;
}
if(module===undefined) {
module = 'document';
}
// 게시글을 가져와서 등록하기
switch(module) {
case 'page' :
var url = opener.current_url;
url = url.setQuery('document_srl', document_srl);
if(url.getQuery('act') === 'dispPageAdminMobileContentModify')
{
url = url.setQuery('act', 'dispPageAdminMobileContentModify');
}
else
{
url = url.setQuery('act', 'dispPageAdminContentModify');
}
opener.location.href = url;
break;
default :
opener.location.href = opener.current_url.setQuery('document_srl', document_srl).setQuery('act', 'dispBoardWrite');
break;
}
window.close();
}
/* 저장글 삭제 */
function doDeleteSavedDocument(document_srl, confirm_message) {
if(!confirm(confirm_message)) return false;
var params = new Array();
params['document_srl'] = document_srl;
exec_json('member.procMemberDeleteSavedDocument', params, function() { location.reload(); });
}
추가된 문구
/* 저장글 삭제 */
function doDeleteSavedDocument(document_srl, confirm_message) {
if(!confirm(confirm_message)) return false;
var params = new Array();
params['document_srl'] = document_srl;
exec_json('member.procMemberDeleteSavedDocument', params, function() { location.reload(); });
}
반응형