WordPress.org

Make WordPress Core

Changeset 23064


Ignore:
Timestamp:
12/05/2012 04:11:49 AM (7 years ago)
Author:
markjaquith
Message:

Allow a sortable options hash to be passed in, so you can override the defaults. props koopersmith. see #22696

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/media-views.js

    r23056 r23064  
    31873187                return;
    31883188
    3189             this.$el.sortable({
     3189            this.$el.sortable( _.extend({
    31903190                // If the `collection` has a `comparator`, disable sorting.
    31913191                disabled: !! collection.comparator,
     
    32323232                    collection.saveMenuOrder();
    32333233                }
    3234             });
     3234            }, this.options.sortable ) );
    32353235
    32363236            // If the `orderby` property is changed on the `collection`,
Note: See TracChangeset for help on using the changeset viewer.