In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Dependency Graph View Issue ] Relation Graph ] Vertical ]
related to child of duplicate of

Viewing Issue Simple Details
ID Category Type Reproducibility Date Submitted Last Update
0001292 [In-Portal CMS] Front End feature request N/A 2012-05-18 04:53 2012-07-25 05:30
Reporter alex View Status public  
Assigned To alex
Priority normal Resolution fixed  
Status closed      
Summary 0001292: Sorting already uploaded files
Description 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.
Additional Information



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker