Skip to content

Commit 0d0fbe5

Browse files
committed
replace old WCF.Action.Delete
1 parent eace278 commit 0d0fbe5

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

acptemplates/apiSecretList.tpl

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
{include file='header' pageTitle='wcf.acp.menu.link.wscApi.secrets.list'}
22

3-
<script data-relocate="true">
4-
$(function() {
5-
new WCF.Action.Delete('wcf\\data\\ApiSecretAction', '.jsSecretRow');
6-
});
7-
</script>
8-
93
<header class="contentHeader">
104
<div class="contentHeaderTitle">
115
<h1 class="contentTitle">{lang}wcf.acp.menu.link.wscApi.secrets.list{/lang}</h1>
@@ -23,7 +17,7 @@
2317
{hascontent}
2418
<div id="boardNodeList" class="section sortableListContainer">
2519
<ol id="boardContainer0" class="sortableList" data-object-id="0">
26-
<table class="table">
20+
<table class="table jsObjectActionContainer" data-object-action-class-name="wcf\data\ApiSecretAction">
2721
<thead>
2822
<tr>
2923
<th></th>
@@ -34,10 +28,10 @@
3428
<tbody>
3529
{content}
3630
{foreach from=$secrets item=secret}
37-
<tr class="jsSecretRow">
31+
<tr class="jsObjectActionObject" data-object-id="{$secret.secretID}">
3832
<td class="columnIcon">
3933
<a href="{link controller='ApiSecretEdit' id=$secret.secretID}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip">{icon name='pencil' size=16}</a>
40-
<span class="icon icon16 fa-times jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$secret.secretID}" data-confirm-message-html="{lang}TODO{/lang}"></span>
34+
{objectAction action="delete" objectTitle=$secret.secretDescription}
4135
</td>
4236
<td>{$secret.secretID}</td>
4337
<td><a title="{lang}wcf.acp.user.edit{/lang}" href="{link controller='ApiSecretEdit' id=$secret.secretID}{/link}">{$secret.secretDescription}</a></td>

0 commit comments

Comments
 (0)