1.png

 

이런식으로 삭제버튼을 추가하려고합니다.

 

modules/document/tpl/saved_list_popup.html

 

파일을 열고

 

<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>

 

이 문구를 추가해줬지만 작동하질 않네요.

어떻게 하면 작동이 될까요?

 

 

  • profile
    doDeleteSavedDocument 함수가 있는지 확인해 보셔야 할 것 같아요.
  • profile ?
    그 함수 목록은 어느파일에 있는지 알 수 있을까요?
  • profile
    doDeleteSavedDocument 함수는 member 모듈 스킨파일에 있는 함수 인거 같네요, tpl js에 해당 함수만 추가하면 될 것 같아요
  • profile ?
    땡큐합니다.