[TASK] Replace confirm from beuser > online user > "End Session" 93/41493/4
authorFrank Nägler <typo3@naegler.net>
Thu, 16 Jul 2015 16:56:37 +0000 (18:56 +0200)
committerSusanne Moog <typo3@susannemoog.de>
Thu, 16 Jul 2015 19:25:47 +0000 (21:25 +0200)
Resolves: #68240
Releases: master
Change-Id: I2520fbb833fe2d6a80d2e8db189f32e56ed94bca
Reviewed-on: http://review.typo3.org/41493
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Susanne Moog <typo3@susannemoog.de>
Tested-by: Susanne Moog <typo3@susannemoog.de>
typo3/sysext/beuser/Resources/Private/Layouts/Default.html
typo3/sysext/beuser/Resources/Private/Partials/BackendUser/OnlineListRow.html

index 28bfc82..e432c7a 100644 (file)
@@ -1,4 +1,4 @@
-<f:be.container>
+<f:be.container includeRequireJsModules="{0: 'TYPO3/CMS/Backend/Modal'}">
        <div class="typo3-fullDoc">
                <div id="typo3-docheader">
                        <div class="typo3-docheader-functions">
index d4a5572..5a82c29 100644 (file)
                                <f:if condition="{currentSessionId} == {session.id}">
                                        <f:else>
                                                <f:link.action
-                                                       class="btn btn-default"
+                                                       class="btn btn-default t3js-modal-trigger"
                                                        action="terminateBackendUserSession"
                                                        controller="BackendUser"
                                                        arguments="{backendUser: onlineUser.backendUser, sessionId: session.id}"
-                                                       onclick="javascript:return confirm('{f:translate(key: 'reallyLogout')} {onlineUser.backendUser.userName}?');"
+                                                       data="{severity: 'warning', title: '{f:translate(key: \'endSession\')}', content: '{f:translate(key: \'reallyLogout\')} {onlineUser.backendUser.userName}?', button-close-text: '{f:translate(key: \'LLL:EXT:lang/locallang_common.xlf:cancel\')}'}"
                                                >
                                                        <be:spriteManagerIcon iconName="actions-document-close" />
                                                        <f:translate key="endSession" />