In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1292 [In-Portal CMS] Front End feature request N/A 2012-05-18 04:53 2012-07-25 05:30
alex  
alex  
normal  
closed 5.1.3  
fixed  
 
none 5.2.0-RC1  
https://groups.google.com/d/topic/in-portal-dev/BoPw8BaFR8g/discussion
Allows to sort uploaded files
1
0001292: Sorting already uploaded files
To make flash uploader even more powerful I'm proposing to add queue sorting capability to it.

To allow that I've added getSortedFiles function, that allows to sort uploaded files using uploader queue div IDs as input. As an example I've used following code (see http://jqueryui.com/demos/sortable/#display-grid):

$(document).ready(
    function () {
        var $uploader_id = '<inp2:project_InputName name="Gallery" js_escape="1"/>';

        $('#' + jq($uploader_id + '_queueinfo'))
        .sortable({
            update: function(event, ui) {
                var $new_order = $(this).sortable('toArray'),
                    $uploader = UploadsManager._Uploaders[$uploader_id],
                    $files = $uploader.getSortedFiles($new_order);

                $('#' + jq($uploader_id + '[order]')).val($files.join('|'));
            }
        })
        .disableSelection();
    }
);

jQuery sortable isn't included in in-portal, that's why by default you can't sort anything of course.
related to 0000456closed  (5.1.0)alex Major Flash Uploader Redesign 
patch uploader_queue_sorting.patch (4,597) 2012-05-18 04:53
http://tracker.in-portal.org/file_download.php?file_id=1666&type=bug
Issue History
2012-07-25 05:30 alex Note Added: 0004896
2012-07-25 05:30 alex Status resolved => closed
2012-05-18 04:55 alex Changeset attached 5.2.x r15347
2012-05-18 04:55 alex Note Added: 0004655
2012-05-18 04:55 alex Status reviewed and tested => resolved
2012-05-18 04:55 alex Fixed in Version => 5.2.0-RC1
2012-05-18 04:55 alex Resolution open => fixed
2012-05-18 04:55 alex Assigned To !COMMUNITY => alex
2012-05-18 04:54 alex Note Added: 0004654
2012-05-18 04:54 alex Status needs testing => reviewed and tested
2012-05-18 04:54 alex Assigned To => !COMMUNITY
2012-05-18 04:54 alex Developer => alex
2012-05-18 04:54 alex Status active => needs testing
2012-05-18 04:54 alex Reference => https://groups.google.com/d/topic/in-portal-dev/BoPw8BaFR8g/discussion
2012-05-18 04:53 alex Relationship added related to 0000456
2012-05-18 04:53 alex New Issue
2012-05-18 04:53 alex File Added: uploader_queue_sorting.patch
2012-05-18 04:53 alex Change Log Message => Allows to sort uploaded files
2012-05-18 04:53 alex Estimate Points => 1

Notes
(0004654)
alex   
2012-05-18 04:54   
Will test all together later.
(0004655)
alex   
2012-05-18 04:55   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001292: Sorting already uploaded files
(0004896)
alex   
2012-07-25 05:30   
Since 5.2.0/1.2.0 versions was released.