[TASK] Remove gfx from TaskCenter 86/42286/3
authorFrank Nägler <frank.naegler@typo3.org>
Wed, 5 Aug 2015 18:29:31 +0000 (20:29 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Wed, 5 Aug 2015 18:41:42 +0000 (20:41 +0200)
Resolves: #68768
Releases: master
Change-Id: Ifc6a6aa01624eafde93b75515483d83070692f02
Reviewed-on: http://review.typo3.org/42286
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/taskcenter/Classes/Controller/TaskModuleController.php
typo3/sysext/taskcenter/Resources/Public/Css/styles.css
typo3/sysext/taskcenter/Resources/Public/JavaScript/Taskcenter.js

index 0173da9..755b1f0 100644 (file)
@@ -268,9 +268,8 @@ class TaskModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
                                $active = (string)$this->MOD_SETTINGS['function'] == $item['uid'] ? ' active-task' : '';
                                // Main menu: Render additional syntax to sort tasks
                                if ($mainMenu) {
-                                       $dragIcon = IconUtility::getSpriteIcon('actions-document-move', array('title' => $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:labels.move', TRUE)));
-                                       $section = '<div class="down">&nbsp;</div>
-                                                               <div class="drag">' . $dragIcon . '</div>';
+                                       $section = '<div class="down"><i class="fa fa-caret-down fa-fw"></i></div>
+                                                               <div class="drag"><i class="fa fa-arrows"></i></div>';
                                        $backgroundClass = 't3-row-header ';
                                } else {
                                        $backgroundClass = '';
index 96ada5e..0a8182b 100644 (file)
@@ -71,7 +71,6 @@ body#ext-taskcenter-task-index-php h3 {
 }
 
 #taskcenter-menu .down {
-       background: url(../../../../t3skin/icons/gfx/pil2down.gif) no-repeat 5px 7px;
        color: #fff;
        height: 23px;
        float: left;
@@ -79,10 +78,6 @@ body#ext-taskcenter-task-index-php h3 {
        cursor: pointer;
 }
 
-#taskcenter-menu .collapsed .down {
-       background-image: url(../../../../t3skin/icons/gfx/pil2right.gif);
-}
-
 #taskcenter-menu .drag {
        color: #fff;
        float: right;
index 2f64383..a49b212 100644 (file)
@@ -38,6 +38,11 @@ define('TYPO3/CMS/Taskcenter/Taskcenter', ['jquery', 'jquery-ui/sortable'], func
                itemParent.toggleClass('expanded', state);
                itemParent.toggleClass('collapsed', !state);
                item.toggle(state);
+               if (state) {
+                       element.find('i.fa').removeClass('fa-caret-down').addClass('fa-caret-up');
+               } else {
+                       element.find('i.fa').removeClass('fa-caret-up').addClass('fa-caret-down');
+               }
 
                $.ajax({
                        url: TYPO3.settings.ajaxUrls['Taskcenter::saveCollapseState'],
@@ -88,4 +93,4 @@ define('TYPO3/CMS/Taskcenter/Taskcenter', ['jquery', 'jquery-ui/sortable'], func
                TYPO3.Taskcenter = Taskcenter;
                return Taskcenter;
        }();
-});
\ No newline at end of file
+});