Skip to content

Commit

Permalink
replace old WCF.Action.Delete
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanashi committed Nov 11, 2023
1 parent a930105 commit 79cbbd4
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions acptemplates/apiSecretList.tpl
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
{include file='header' pageTitle='wcf.acp.menu.link.wscApi.secrets.list'}

<script data-relocate="true">
$(function() {
new WCF.Action.Delete('wcf\\data\\ApiSecretAction', '.jsSecretRow');
});
</script>

<header class="contentHeader">
<div class="contentHeaderTitle">
<h1 class="contentTitle">{lang}wcf.acp.menu.link.wscApi.secrets.list{/lang}</h1>
Expand All @@ -23,7 +17,7 @@
{hascontent}
<div id="boardNodeList" class="section sortableListContainer">
<ol id="boardContainer0" class="sortableList" data-object-id="0">
<table class="table">
<table class="table jsObjectActionContainer" data-object-action-class-name="wcf\data\ApiSecretAction">
<thead>
<tr>
<th></th>
Expand All @@ -34,10 +28,10 @@
<tbody>
{content}
{foreach from=$secrets item=secret}
<tr class="jsSecretRow">
<tr class="jsObjectActionObject" data-object-id="{$secret.secretID}">
<td class="columnIcon">
<a href="{link controller='ApiSecretEdit' id=$secret.secretID}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip">{icon name='pencil' size=16}</a>
<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>
{objectAction action="delete" objectTitle=$secret.secretDescription}
</td>
<td>{$secret.secretID}</td>
<td><a title="{lang}wcf.acp.user.edit{/lang}" href="{link controller='ApiSecretEdit' id=$secret.secretID}{/link}">{$secret.secretDescription}</a></td>
Expand Down

0 comments on commit 79cbbd4

Please sign in to comment.