~canonical-sysadmins/wordpress/3.9.x

« back to all changes in this revision

Viewing changes to wp-admin/js/gallery.dev.js

  • Committer: Chris Jones
  • Date: 2010-01-19 13:17:33 UTC
  • Revision ID: cmsj@tenshu.net-20100119131733-rf31jv9k1v0xzo2h
[CJ] Import wordpress 2.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
        gallerySortableInit = function() {
5
5
                gallerySortable = $('#media-items').sortable( {
6
 
                        items: '.media-item',
 
6
                        items: 'div.media-item',
7
7
                        placeholder: 'sorthelper',
8
8
                        axis: 'y',
9
9
                        distance: 2,
 
10
                        handle: 'div.filename',
10
11
                        stop: function(e, ui) {
11
12
                                // When an update has occurred, adjust the order for each item
12
13
                                var all = $('#media-items').sortable('toArray'), len = all.length;