Skip to content
Snippets Groups Projects
Commit 402b63eb authored by Frank Nägler's avatar Frank Nägler Committed by Benjamin Mack
Browse files

[TASK] Replace icon for open in new window

Task Center Module: Open in new window:
use icon utility > sprite monochrome, vector icon

Resolves: #63259
Releases: master
Change-Id: Idb99858591e4ccca6fb835688462252832aa53a3
Reviewed-on: http://review.typo3.org/34533


Reviewed-by: default avatarBenjamin Mack <benni@typo3.org>
Tested-by: default avatarBenjamin Mack <benni@typo3.org>
parent 6474d3a1
No related merge requests found
......@@ -15,6 +15,7 @@ namespace TYPO3\CMS\Taskcenter\Controller;
*/
use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Backend\Utility\IconUtility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
/**
......@@ -383,7 +384,9 @@ class TaskModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
protected function openInNewWindow() {
$url = GeneralUtility::getIndpEnv('TYPO3_REQUEST_URL');
$onClick = 'devlogWin=window.open(\'' . $url . '\',\'taskcenter\',\'width=790,status=0,menubar=1,resizable=1,location=0,scrollbars=1,toolbar=0\');return false;';
$content = '<a href="#" onclick="' . htmlspecialchars($onClick) . '">' . '<img' . \TYPO3\CMS\Backend\Utility\IconUtility::skinImg($GLOBALS['BACK_PATH'], 'gfx/open_in_new_window.gif', 'width="19" height="14"') . ' title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.openInNewWindow', TRUE) . '" class="absmiddle" alt="" />' . '</a>';
$content = '<a href="#" onclick="' . htmlspecialchars($onClick) . '">' .
IconUtility::getSpriteIcon('actions-window-open', array('title' => $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.openInNewWindow', TRUE))) .
'</a>';
return $content;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment