Start using `Ui/Object/Action/*` in ACP
authorMatthias Schmidt <gravatronics@live.com>
Tue, 16 Mar 2021 13:56:07 +0000 (14:56 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 21 Mar 2021 09:21:39 +0000 (10:21 +0100)
wcfsetup/install/files/acp/templates/bbcodeList.tpl
wcfsetup/install/files/acp/templates/bbcodeMediaProviderList.tpl
wcfsetup/install/files/acp/templates/boxList.tpl
wcfsetup/install/files/acp/templates/captchaQuestionList.tpl
wcfsetup/install/files/acp/templates/contactSettings.tpl
wcfsetup/install/files/acp/templates/cronjobList.tpl
wcfsetup/install/files/acp/templates/devtoolsMissingLanguageItemList.tpl
wcfsetup/install/files/acp/templates/devtoolsProjectList.tpl

index 884878a8de1dbdd71d48021c26419dffcb900d96..dfdf3e266c4c6e62c63189a308e4e95dd5220a0b 100644 (file)
@@ -1,11 +1,5 @@
 {include file='header' pageTitle='wcf.acp.bbcode.list'}
 
-<script data-relocate="true">
-       $(function() {
-               new WCF.Action.Delete('wcf\\data\\bbcode\\BBCodeAction', '.jsBBCodeRow');
-       });
-</script>
-
 <header class="contentHeader">
        <div class="contentHeaderTitle">
                <h1 class="contentTitle">{lang}wcf.acp.bbcode.list{/lang}{if $items} <span class="badge badgeInverse">{#$items}</span>{/if}</h1>
@@ -28,7 +22,7 @@
 
 {if $objects|count}
        <div class="section tabularBox">
-               <table class="table">
+               <table class="table jsObjectActionContainer" data-object-action-class-name="wcf\data\bbcode\BBCodeAction">
                        <thead>
                                <tr>
                                        <th class="columnID columnBBCodeID{if $sortField == 'bbcodeID'} active {@$sortOrder}{/if}" colspan="2"><a href="{link controller='BBCodeList'}pageNo={@$pageNo}&sortField=bbcodeID&sortOrder={if $sortField == 'bbcodeID' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.global.objectID{/lang}</a></th>
                        
                        <tbody class="jsReloadPageWhenEmpty">
                                {foreach from=$objects item=bbcode}
-                                       <tr class="jsBBCodeRow">
+                                       <tr class="jsBBCodeRow jsObjectActionObject" data-object-id="{@$bbcode->getObjectID()}">
                                                <td class="columnIcon">
                                                        <a href="{link controller='BBCodeEdit' object=$bbcode}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip"><span class="icon icon16 fa-pencil"></span></a>
                                                        {if $bbcode->canDelete()}
-                                                               <span class="icon icon16 fa-times jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$bbcode->bbcodeID}" data-confirm-message-html="{lang __encode=true}wcf.acp.bbcode.delete.sure{/lang}"></span>
+                                                               <span class="icon icon16 fa-times jsObjectAction jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-action="delete" data-confirm-message="{lang __encode=true}wcf.acp.bbcode.delete.sure{/lang}"></span>
                                                        {else}
                                                                <span class="icon icon16 fa-times disabled"></span>
                                                        {/if}
index a78ee5877d456c41ba4af80de78427b0431e4ff8..2ed1879ff3c1d269514c55768c2dc804e772867e 100644 (file)
@@ -1,12 +1,5 @@
 {include file='header' pageTitle='wcf.acp.bbcode.mediaProvider.list'}
 
-<script data-relocate="true">
-       $(function() {
-               new WCF.Action.Delete('wcf\\data\\bbcode\\media\\provider\\BBCodeMediaProviderAction', '.jsMediaProviderRow');
-               new WCF.Action.Toggle('wcf\\data\\bbcode\\media\\provider\\BBCodeMediaProviderAction', '.jsMediaProviderRow');
-       });
-</script>
-
 <header class="contentHeader">
        <div class="contentHeaderTitle">
                <h1 class="contentTitle">{lang}wcf.acp.bbcode.mediaProvider.list{/lang}{if $items} <span class="badge badgeInverse">{#$items}</span>{/if}</h1>
@@ -29,7 +22,7 @@
 
 {if $objects|count}
        <div class="section tabularBox">
-               <table class="table">
+               <table class="table jsObjectActionContainer" data-object-action-class-name="wcf\data\bbcode\media\provider\BBCodeMediaProviderAction">
                        <thead>
                                <tr>
                                        <th class="columnID columnMediaProviderID{if $sortField == 'providerID'} active {@$sortOrder}{/if}" colspan="2"><a href="{link controller='BBCodeMediaProviderList'}pageNo={@$pageNo}&sortField=providerID&sortOrder={if $sortField == 'providerID' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.global.objectID{/lang}</a></th>
                        
                        <tbody class="jsReloadPageWhenEmpty">
                                {foreach from=$objects item='mediaProvider'}
-                                       <tr class="jsMediaProviderRow">
+                                       <tr class="jsMediaProviderRow jsObjectActionObject" data-object-id="{@$mediaProvider->getObjectID()}">
                                                <td class="columnIcon">
-                                                       <span class="icon icon16 fa-{if !$mediaProvider->isDisabled}check-{/if}square-o jsToggleButton jsTooltip pointer" title="{lang}wcf.global.button.{if !$mediaProvider->isDisabled}disable{else}enable{/if}{/lang}" data-object-id="{@$mediaProvider->providerID}"></span>
+                                                       <span class="icon icon16 fa-{if !$mediaProvider->isDisabled}check-{/if}square-o jsObjectAction jsTooltip pointer" title="{lang}wcf.global.button.{if !$mediaProvider->isDisabled}disable{else}enable{/if}{/lang}" data-object-action="toggle"></span>
                                                        <a href="{link controller='BBCodeMediaProviderEdit' object=$mediaProvider}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip"><span class="icon icon16 fa-pencil"></span></a>
-                                                       <span class="icon icon16 fa-times jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$mediaProvider->providerID}" data-confirm-message-html="{lang __encode=true}wcf.acp.bbcode.mediaProvider.delete.sure{/lang}"></span>
+                                                       <span class="icon icon16 fa-times jsObjectAction jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-action="delete" data-confirm-message="{lang __encode=true}wcf.acp.bbcode.mediaProvider.delete.sure{/lang}"></span>
                                                        
                                                        {event name='rowButtons'}
                                                </td>
index 991c029bf5b4e5b6fb47fddd907b960ad03e1f10..49a829d49f60df5355d13853f35d2fbb38ee35d0 100644 (file)
@@ -1,12 +1,5 @@
 {include file='header' pageTitle='wcf.acp.box.list'}
 
-<script data-relocate="true">
-       $(function() {
-               new WCF.Action.Delete('wcf\\data\\box\\BoxAction', '.jsBoxRow');
-               new WCF.Action.Toggle('wcf\\data\\box\\BoxAction', '.jsBoxRow');
-       });
-</script>
-
 <header class="contentHeader">
        <div class="contentHeaderTitle">
                <h1 class="contentTitle">{lang}wcf.acp.box.list{/lang}{if $items} <span class="badge badgeInverse">{#$items}</span>{/if}</h1>
 
 {if $objects|count}
        <div class="section tabularBox">
-               <table class="table">
+               <table class="table jsObjectActionContainer" data-object-action-class-name="wcf\data\box\BoxAction">
                        <thead>
                                <tr>
                                        <th class="columnID columnBoxID{if $sortField == 'boxID'} active {@$sortOrder}{/if}" colspan="2"><a href="{link controller='BoxList'}pageNo={@$pageNo}&sortField=boxID&sortOrder={if $sortField == 'boxID' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{@$linkParameters}{/link}">{lang}wcf.global.objectID{/lang}</a></th>
                        
                        <tbody class="jsReloadPageWhenEmpty">
                                {foreach from=$objects item=box}
-                                       <tr class="jsBoxRow">
+                                       <tr class="jsBoxRow jsObjectActionObject" data-object-id="{@$box->getObjectID()}">
                                                <td class="columnIcon">
-                                                       <span class="icon icon16 fa-{if !$box->isDisabled}check-{/if}square-o jsToggleButton jsTooltip pointer" title="{lang}wcf.global.button.{if !$box->isDisabled}disable{else}enable{/if}{/lang}" data-object-id="{@$box->boxID}"></span>
+                                                       <span class="icon icon16 fa-{if !$box->isDisabled}check-{/if}square-o jsObjectAction jsTooltip pointer" title="{lang}wcf.global.button.{if !$box->isDisabled}disable{else}enable{/if}{/lang}" data-object-action="toggle"></span>
                                                        <a href="{link controller='BoxEdit' id=$box->boxID}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip"><span class="icon icon16 fa-pencil"></span></a>
                                                        {if $box->canDelete()}
-                                                               <span class="icon icon16 fa-times jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$box->boxID}" data-confirm-message-html="{lang __encode=true}wcf.acp.box.delete.confirmMessage{/lang}"></span>
+                                                               <span class="icon icon16 fa-times jsObjectAction jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-action="delete" data-confirm-message="{lang __encode=true}wcf.acp.box.delete.confirmMessage{/lang}"></span>
                                                        {else}
                                                                <span class="icon icon16 fa-times disabled" title="{lang}wcf.global.button.delete{/lang}"></span>
                                                        {/if}
index b14bbdc41971c58e4599eaf1ff53ddc9edce0041..047f01f809d665e3356d5f1078890ed7c6cc70a1 100644 (file)
@@ -1,12 +1,5 @@
 {include file='header' pageTitle='wcf.acp.captcha.question.list'}
 
-<script data-relocate="true">
-       $(function() {
-               new WCF.Action.Delete('wcf\\data\\captcha\\question\\CaptchaQuestionAction', '.jsQuestionRow');
-               new WCF.Action.Toggle('wcf\\data\\captcha\\question\\CaptchaQuestionAction', '.jsQuestionRow');
-       });
-</script>
-
 <header class="contentHeader">
        <div class="contentHeaderTitle">
                <h1 class="contentTitle">{lang}wcf.acp.captcha.question.list{/lang}{if $items} <span class="badge badgeInverse">{#$items}</span>{/if}</h1>
@@ -29,7 +22,7 @@
 
 {hascontent}
        <div id="captchaQuestionTabelContainer" class="section tabularBox">
-               <table class="table">
+               <table class="table jsObjectActionContainer" data-object-action-class-name="wcf\data\captcha\question\CaptchaQuestionAction">
                        <thead>
                                <tr>
                                        <th class="columnID columnQuestionID active ASC" colspan="2">{lang}wcf.global.objectID{/lang}</th>
                        <tbody class="jsReloadPageWhenEmpty">
                                {content}
                                        {foreach from=$objects item='question'}
-                                               <tr class="jsQuestionRow">
+                                               <tr class="jsQuestionRow jsObjectActionObject" data-object-id="{@$question->getObjectID()}">
                                                        <td class="columnIcon">
-                                                               <span class="icon icon16 fa-{if !$question->isDisabled}check-{/if}square-o jsToggleButton jsTooltip pointer" title="{lang}wcf.global.button.{if $question->isDisabled}enable{else}disable{/if}{/lang}" data-object-id="{@$question->questionID}"></span>
+                                                               <span class="icon icon16 fa-{if !$question->isDisabled}check-{/if}square-o jsObjectAction jsTooltip pointer" title="{lang}wcf.global.button.{if $question->isDisabled}enable{else}disable{/if}{/lang}" data-object-action="toggle"></span>
                                                                <a href="{link controller='CaptchaQuestionEdit' id=$question->questionID}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip"><span class="icon icon16 fa-pencil"></span></a>
-                                                               <span class="icon icon16 fa-times jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$question->questionID}" data-confirm-message-html="{lang __encode=true}wcf.acp.captcha.question.delete.confirmMessage{/lang}"></span>
+                                                               <span class="icon icon16 fa-times jsObjectAction jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-action="delete" data-confirm-message="{lang __encode=true}wcf.acp.captcha.question.delete.confirmMessage{/lang}"></span>
                                                                
                                                                {event name='rowButtons'}
                                                        </td>
index 0bf0a32613deeb7adb2a49ba2e80a0b1d2de344b..15b41174bf9bd5eb2752909c2be9effea78ffe2b 100644 (file)
                        isSimpleSorting: true
                });
        });
-       
-       $(function() {
-               new WCF.Action.Delete('wcf\\data\\contact\\option\\ContactOptionAction', '.jsOptionRow');
-               new WCF.Action.Toggle('wcf\\data\\contact\\option\\ContactOptionAction', $('.jsOptionRow'));
-               
-               new WCF.Action.Delete('wcf\\data\\contact\\recipient\\ContactRecipientAction', '.jsRecipient');
-               new WCF.Action.Toggle('wcf\\data\\contact\\recipient\\ContactRecipientAction', '.jsRecipient');
-       });
 </script>
 
 <header class="contentHeader">
@@ -42,7 +34,7 @@
        <h2 class="sectionTitle">{lang}wcf.acp.contact.options{/lang}</h2>
        
        <div id="optionList" class="sortableListContainer">
-               <table class="table">
+               <table class="table jsObjectActionContainer" data-object-action-class-name="wcf\data\contact\option\ContactOptionAction">
                        <thead>
                                <tr>
                                        <th class="columnID columnOptionID" colspan="2">{lang}wcf.global.objectID{/lang}</th>
                        
                        <tbody class="sortableList" data-object-id="0">
                                {foreach from=$optionList item=option}
-                                       <tr class="sortableNode jsOptionRow" data-object-id="{@$option->optionID}">
+                                       <tr class="sortableNode jsOptionRow jsObjectActionObject" data-object-id="{@$option->optionID}">
                                                <td class="columnIcon">
-                                                       <span class="icon icon16 fa-{if !$option->isDisabled}check-{/if}square-o jsToggleButton jsTooltip pointer" title="{lang}wcf.global.button.{if $option->isDisabled}enable{else}disable{/if}{/lang}" data-object-id="{@$option->optionID}"></span>
+                                                       <span class="icon icon16 fa-{if !$option->isDisabled}check-{/if}square-o jsObjectAction jsTooltip pointer" title="{lang}wcf.global.button.{if $option->isDisabled}enable{else}disable{/if}{/lang}" data-object-action="toggle"></span>
                                                        <a href="{link controller='ContactOptionEdit' id=$option->optionID}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip"><span class="icon icon16 fa-pencil"></span></a>
                                                        {if $option->canDelete()}
-                                                               <span class="icon icon16 fa-times jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$option->optionID}" data-confirm-message-html="{lang __encode=true}wcf.acp.customOption.delete.confirmMessage{/lang}"></span>
+                                                               <span class="icon icon16 fa-times jsObjectAction jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-action="delete"  data-confirm-message="{lang __encode=true}wcf.acp.customOption.delete.confirmMessage{/lang}"></span>
                                                        {else}
                                                                <span class="icon icon16 fa-times disabled"></span>
                                                        {/if}
        <h2 class="sectionTitle">{lang}wcf.acp.contact.recipients{/lang}</h2>
        
        <div id="recipientList" class="sortableListContainer">
-               <ol class="sortableList" data-object-id="0">
+               <ol class="sortableList jsObjectActionContainer" data-object-id="0" data-object-action-class-name="wcf\data\contact\recipient\ContactRecipientAction">
                        {foreach from=$recipientList item=recipient}
-                               <li class="sortableNode sortableNoNesting jsRecipient" data-object-id="{@$recipient->recipientID}">
+                               <li class="sortableNode sortableNoNesting jsRecipient jsObjectActionObject" data-object-id="{@$recipient->recipientID}">
                                        <span class="sortableNodeLabel">
                                                <a href="{link controller='ContactRecipientEdit' id=$recipient->recipientID}{/link}">{$recipient}</a>
                                                
                                                <span class="statusDisplay sortableButtonContainer">
                                                        <span class="icon icon16 fa-arrows sortableNodeHandle"></span>
-                                                       <span class="icon icon16 fa-{if !$recipient->isDisabled}check-square-o{else}square-o{/if} jsToggleButton jsTooltip pointer" title="{lang}wcf.global.button.{if $recipient->isDisabled}enable{else}disable{/if}{/lang}" data-object-id="{@$recipient->recipientID}"></span>
+                                                       <span class="icon icon16 fa-{if !$recipient->isDisabled}check-square-o{else}square-o{/if} jsObjectAction jsTooltip pointer" title="{lang}wcf.global.button.{if $recipient->isDisabled}enable{else}disable{/if}{/lang}" data-object-action="toggle"></span>
                                                        <a href="{link controller='ContactRecipientEdit' id=$recipient->recipientID}{/link}"><span title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip icon icon16 fa-pencil"></a>
                                                        {if $recipient->originIsSystem}
                                                                <span class="icon icon16 fa-times disabled"></span>
                                                        {else}
-                                                               <span title="{lang}wcf.global.button.delete{/lang}" class="jsDeleteButton jsTooltip icon icon16 fa-times pointer" data-object-id="{@$recipient->recipientID}" data-confirm-message-html="{lang __encode=true}wcf.acp.contact.recipient.delete.confirmMessage{/lang}">
+                                                               <span title="{lang}wcf.global.button.delete{/lang}" class="jsObjectAction jsTooltip icon icon16 fa-times pointer" data-object-action="delete" data-confirm-message="{lang __encode=true}wcf.acp.contact.recipient.delete.confirmMessage{/lang}">
                                                        {/if}
                                                        
                                                        {event name='itemButtons'}
index 2591b02e0d6d8e289fc5055af5de8e3afa62b639..aa231df46bc92435981f0ba895849c19891d34fb 100644 (file)
@@ -2,9 +2,6 @@
 
 <script data-relocate="true">
        $(function() {
-               new WCF.Action.Delete('wcf\\data\\cronjob\\CronjobAction', '.jsCronjobRow');
-               new WCF.Action.Toggle('wcf\\data\\cronjob\\CronjobAction', '.jsCronjobRow');
-               
                new WCF.ACP.Cronjob.ExecutionHandler();
        });
 </script>
@@ -32,7 +29,7 @@
 
 {hascontent}
        <div class="section tabularBox">
-               <table class="table">
+               <table class="table jsObjectActionContainer" data-object-action-class-name="wcf\data\cronjob\CronjobAction">
                        <thead>
                                <tr>
                                        <th class="columnID columnCronjobID{if $sortField == 'cronjobID'} active {@$sortOrder}{/if}" colspan="2"><a href="{link controller='CronjobList'}pageNo={@$pageNo}&sortField=cronjobID&sortOrder={if $sortField == 'cronjobID' && $sortOrder == 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.global.objectID{/lang}</a></th>
                        <tbody class="jsReloadPageWhenEmpty">
                                {content}
                                        {foreach from=$objects item=cronjob}
-                                               <tr class="jsCronjobRow">
+                                               <tr class="jsCronjobRow jsObjectActionObject" data-object-id="{@$cronjob->getObjectID()}">
                                                        <td class="columnIcon">
                                                                <span class="icon icon16 fa-play jsExecuteButton jsTooltip pointer" title="{lang}wcf.acp.cronjob.execute{/lang}" data-object-id="{@$cronjob->cronjobID}"></span>
                                                                
                                                                {if $cronjob->canBeDisabled()}
-                                                                       <span class="icon icon16 fa-{if !$cronjob->isDisabled}check-{/if}square-o jsToggleButton jsTooltip pointer" title="{lang}wcf.global.button.{if !$cronjob->isDisabled}disable{else}enable{/if}{/lang}" data-object-id="{@$cronjob->cronjobID}"></span>
+                                                                       <span class="icon icon16 fa-{if !$cronjob->isDisabled}check-{/if}square-o jsObjectAction jsTooltip pointer" title="{lang}wcf.global.button.{if !$cronjob->isDisabled}disable{else}enable{/if}{/lang}" data-object-action="toggle"></span>
                                                                {else}
                                                                        {if !$cronjob->isDisabled}
                                                                                <span class="icon icon16 fa-check-square-o disabled" title="{lang}wcf.global.button.disable{/lang}"></span>
@@ -71,7 +68,7 @@
                                                                        <span class="icon icon16 fa-pencil disabled" title="{lang}wcf.global.button.edit{/lang}"></span>
                                                                {/if}
                                                                {if $cronjob->isDeletable()}
-                                                                       <span class="icon icon16 fa-times jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$cronjob->cronjobID}" data-confirm-message-html="{lang __encode=true}wcf.acp.cronjob.delete.sure{/lang}"></span>
+                                                                       <span class="icon icon16 fa-times jsObjectAction jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-action="delete" data-confirm-message="{lang __encode=true}wcf.acp.cronjob.delete.sure{/lang}"></span>
                                                                {else}
                                                                        <span class="icon icon16 fa-times disabled" title="{lang}wcf.global.button.delete{/lang}"></span>
                                                                {/if}
index fc7e657e5d118e92387c0355f4751779bae114ba..e991a1e19101e74e8e68f551c374e83cebf05409 100644 (file)
@@ -31,7 +31,7 @@
 
 {if $items}
        <div id="missingLanguageItemTable" class="section tabularBox">
-               <table class="table">
+               <table class="table jsObjectActionContainer" data-object-action-class-name="wcf\data\devtools\missing\language\item\DevtoolsMissingLanguageItemAction">
                        <thead>
                                <tr>
                                        <th class="columnID{if $sortField === 'itemID'} active {@$sortOrder}{/if}" colspan="2"><a href="{link controller='DevtoolsMissingLanguageItemList'}sortField=itemID&sortOrder={if $sortField === 'itemID' && $sortOrder === 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.global.objectID{/lang}</a></th>
@@ -45,9 +45,9 @@
                        
                        <tbody class="jsReloadPageWhenEmpty">
                                {foreach from=$objects item=logEntry}
-                                       <tr class="jsObjectRow">
+                                       <tr class="jsObjectRow jsObjectActionObject" data-object-id="{@$logEntry->getObjectID()}">
                                                <td class="columnIcon">
-                                                       <span class="icon icon16 fa-times jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$logEntry->getObjectID()}" data-confirm-message-html="{lang __encode=true}wcf.acp.devtools.missingLanguageItem.delete.confirmMessage{/lang}"></span>
+                                                       <span class="icon icon16 fa-times jsObjectAction jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-action="delete" data-confirm-message="{lang __encode=true}wcf.acp.devtools.missingLanguageItem.delete.confirmMessage{/lang}"></span>
                                                        <span class="icon icon16 fa-align-justify jsStackTraceButton jsTooltip pointer" title="{lang}wcf.acp.devtools.missingLanguageItem.showStackTrace{/lang}" data-stack-trace="{$logEntry->getStackTrace()}"></span>
                                                </td>
                                                <td class="columnID">{@$logEntry->getObjectID()}</td>
@@ -87,8 +87,6 @@
                        });
                        
                        new UiDevtoolsMissingLanguageItemList.default();
-                       
-                       new WCF.Action.Delete('wcf\\data\\devtools\\missing\\language\\item\\DevtoolsMissingLanguageItemAction', '.jsObjectRow');
                });
        </script>
 {else}
index a7390ecf7c5425e6b1d2bd8d733ac00db33587eb..c938c0d27765cdbaa6cf59c0cd96d106b60919ef 100644 (file)
@@ -1,10 +1,6 @@
 {include file='header' pageTitle='wcf.acp.devtools.project.list'}
 
 <script data-relocate="true">
-       $(function() {
-               new WCF.Action.Delete('wcf\\data\\devtools\\project\\DevtoolsProjectAction', '.jsObjectRow');
-       });
-       
        require(['WoltLabSuite/Core/Acp/Ui/Devtools/Project/QuickSetup', 'Language'], function(AcpUiDevtoolsProjectQuickSetup, Language) {
                Language.add('wcf.acp.devtools.project.quickSetup', '{jslang}wcf.acp.devtools.project.quickSetup{/jslang}');
                
@@ -31,7 +27,7 @@
 
 {hascontent}
        <div class="section tabularBox">
-               <table class="table">
+               <table class="table jsObjectActionContainer" data-object-action-class-name="wcf\data\devtools\project\DevtoolsProjectAction">
                        <thead>
                                <tr>
                                        <th class="columnID{if $sortField === 'projectID'} active {@$sortOrder}{/if}" colspan="3"><a href="{link controller='DevtoolsProjectList'}sortField=projectID&sortOrder={if $sortField === 'projectID' && $sortOrder === 'ASC'}DESC{else}ASC{/if}{/link}">{lang}wcf.global.objectID{/lang}</a></th>
                        <tbody>
                                {content}
                                        {foreach from=$objects item=object}
-                                               <tr class="jsObjectRow">
+                                               <tr class="jsObjectRow jsObjectActionObject" data-object-id="{@$object->getObjectID()}">
                                                        <td class="columnIcon">
                                                                <a href="{link controller='DevtoolsProjectSync' id=$object->getObjectID()}{/link}" class="button small">{lang}wcf.acp.devtools.project.sync{/lang}</a>
                                                                <a href="{link controller='DevtoolsProjectPipList' id=$object->getObjectID()}{/link}" class="button small">{lang}wcf.acp.devtools.project.pips{/lang}</a>
                                                        </td>
                                                        <td class="columnIcon">
                                                                <a href="{link controller='DevtoolsProjectEdit' id=$object->getObjectID()}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip"><span class="icon icon16 fa-pencil"></span></a>
-                                                               <span class="icon icon16 fa-times jsDeleteButton jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-id="{@$object->getObjectID()}" data-confirm-message-html="{lang __encode=true}wcf.acp.devtools.project.delete.confirmMessage{/lang}"></span>
+                                                               <span class="icon icon16 fa-times jsObjectAction jsTooltip pointer" title="{lang}wcf.global.button.delete{/lang}" data-object-action="delete" data-confirm-message="{lang __encode=true}wcf.acp.devtools.project.delete.confirmMessage{/lang}"></span>
                                                        </td>
                                                        <td class="columnID">{@$object->getObjectID()}</td>
                                                        <td class="columnText"><a href="{link controller='DevtoolsProjectEdit' id=$object->getObjectID()}{/link}">{$object->name}</a></td>