[BUGFIX] sort versions of ext in descending order
authorJigal van Hemert <jigal@xs4all.nl>
Thu, 4 Oct 2012 20:50:52 +0000 (22:50 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 10 Oct 2012 18:39:24 +0000 (20:39 +0200)
Versions of the same extension are sorted in descending order in the
PHP code, but the initial jQuery sorting must match that order.

Change-Id: Ic508fdf36b43e6209c83ca61bcf18917ae5ec3f3
Fixes: #41518
Releases: 6.0
Reviewed-on: http://review.typo3.org/15336
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/sysext/extensionmanager/Resources/Private/Templates/List/ShowAllVersions.html
typo3/sysext/extensionmanager/Resources/Public/JavaScript/ter.js

index ed7e3e0..c07a53e 100644 (file)
@@ -14,7 +14,7 @@
                <f:form.submit value="Reset Search"/>
        </f:form>
        <f:widget.paginate objects="{extensions}" as="paginatedExtensions" configuration="{itemsPerPage: 15, maximumNumberOfLinks: 2}">
-       <table id="terTable" class="typo3-extension-list">
+       <table id="terVersionTable" class="typo3-extension-list">
                        <f:render partial="List/TerShowVersionsTable" arguments="{paginatedExtensions:paginatedExtensions}" />
        </table>
        </f:widget.paginate>
index 6bbf50f..f7adceb 100644 (file)
@@ -10,6 +10,18 @@ jQuery(document).ready(function() {
                "fnDrawCallback": bindDownload
        });
 
+       jQuery('#terVersionTable').dataTable({
+               "bJQueryUI":true,
+               "bLengthChange":false,
+               'iDisplayLength':15,
+               "bStateSave":false,
+               "bInfo":false,
+               "bPaginate":false,
+               "bFilter":false,
+               "aaSorting":[[0, 'desc']],
+               "fnDrawCallback":bindDownload
+       });
+
        jQuery('#terSearchTable').dataTable({
                "sPaginationType":"full_numbers",
                "bJQueryUI":true,