[TASK] Make the whole update button in extension manager clickable 98/48098/3
authorGianluigi Martino <gmartino27@gmail.com>
Thu, 12 May 2016 08:28:48 +0000 (10:28 +0200)
committerNicole Cordes <typo3@cordes.co>
Thu, 12 May 2016 11:18:38 +0000 (13:18 +0200)
The click area of the update button in extension manager was to small.
The click handler is now assigned to the whole button.

Change-Id: I8b2103dcbde5dcc37a7968780719abca384528a1
Resolves: #76136
Releases: master, 7.6
Reviewed-on: https://review.typo3.org/48098
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/extensionmanager/Resources/Private/Templates/List/Index.html

index e6bc5f3..990899b 100644 (file)
                                </f:if>
                                <td>
                                        <f:if condition="{extension.updateAvailable}">
                                </f:if>
                                <td>
                                        <f:if condition="{extension.updateAvailable}">
-                                               <div class="btn-group">
-                                                       <f:if condition="{extension.state} == 'excludeFromUpdates'">
-                                                               <f:then>
-                                                                       <span class="btn btn-default disabled" title="{f:translate(key:'extensionList.updateDisabled')}">
+                                               <f:if condition="{extension.state} == 'excludeFromUpdates'">
+                                                       <f:then>
+                                                               <span class="btn btn-default disabled" title="{f:translate(key:'extensionList.updateDisabled')}">
+                                                                       <core:icon identifier="actions-system-extension-update" />
+                                                               </span>
+                                                       </f:then>
+                                                       <f:else>
+                                                                       <f:link.action action="updateCommentForUpdatableVersions"
+                                                                               class="btn btn-default"
+                                                                               additionalAttributes="{data-action:'update-extension'}"
+                                                                               format="json" controller="Download"
+                                                                               arguments="{extension:extension.key, integerVersionStart: extension.terObject.integerVersion, integerVersionStop: extension.updateToVersion.integerVersion}"
+                                                                               title="{f:translate(key:'extensionList.updateToVersion', arguments:{0:extension.updateToVersion.version})}"
+                                                                       >
                                                                                <core:icon identifier="actions-system-extension-update" />
                                                                                <core:icon identifier="actions-system-extension-update" />
-                                                                       </span>
-                                                               </f:then>
-                                                               <f:else>
-                                                                       <span class="btn btn-default">
-                                                                               <f:link.action action="updateCommentForUpdatableVersions"
-                                                                                       additionalAttributes="{data-action:'update-extension'}"
-                                                                                       format="json" controller="Download"
-                                                                                       arguments="{extension:extension.key, integerVersionStart: extension.terObject.integerVersion, integerVersionStop: extension.updateToVersion.integerVersion}"
-                                                                                       title="{f:translate(key:'extensionList.updateToVersion', arguments:{0:extension.updateToVersion.version})}"
-                                                                               >
-                                                                                       <core:icon identifier="actions-system-extension-update" />
-                                                                               </f:link.action>
-                                                                       </span>
-                                                               </f:else>
-                                                       </f:if>
-                                               </div>
+                                                                       </f:link.action>
+                                                       </f:else>
+                                               </f:if>
                                        </f:if>
                                </td>
                                <td data-order="{f:if(condition: extension.installed, then: 'active', else: 'inactive')}">
                                        </f:if>
                                </td>
                                <td data-order="{f:if(condition: extension.installed, then: 'active', else: 'inactive')}">