Refresh clipboard after deleting tag via icon
authorMatthias Schmidt <gravatronics@live.com>
Sun, 25 Sep 2016 12:40:02 +0000 (14:40 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 25 Sep 2016 12:40:02 +0000 (14:40 +0200)
wcfsetup/install/files/acp/templates/tagList.tpl

index f84bfcddb79f231ae4fe56d812db145a7cce629d..06c9085f4e4255ab13ca7f3787945e66917fcc59 100644 (file)
@@ -1,12 +1,15 @@
 {include file='header' pageTitle='wcf.acp.tag.list'}
 
 <script data-relocate="true">
-       $(function() {
-               WCF.Language.add('wcf.acp.tag.setAsSynonyms', '{lang}wcf.acp.tag.setAsSynonyms{/lang}');
+       require(['WoltLabSuite/Core/Controller/Clipboard', 'Language'], function(ControllerClipboard, Language) {
+               Language.add('wcf.acp.tag.setAsSynonyms', '{lang}wcf.acp.tag.setAsSynonyms{/lang}');
+               
+               var deleteAction = new WCF.Action.Delete('wcf\\data\\tag\\TagAction', '.jsTagRow');
+               deleteAction.setCallback(ControllerClipboard.reload.bind(ControllerClipboard));
                
                WCF.Clipboard.init('wcf\\acp\\page\\TagListPage', {@$hasMarkedItems}, {
                        'com.woltlab.wcf.tag': {
-                               'delete': new WCF.Action.Delete('wcf\\data\\tag\\TagAction', '.jsTagRow')
+                               'delete': deleteAction
                        }
                });