Anonymous | Login | Signup for a new account | 2024-04-23 21:03 CDT |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Dependency Graph | [ View Issue ] [ Relation Graph ] [ Horizontal ] | |||
|
||||
|
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 |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Web Development by Intechnic In-Portal Open Source CMS |