Ticket #22696: sortable-options-hash.diff
File sortable-options-hash.diff, 737 bytes (added by , 11 years ago) |
---|
-
wp-includes/js/media-views.js
3186 3186 if ( ! this.options.sortable || ! $.fn.sortable ) 3187 3187 return; 3188 3188 3189 this.$el.sortable( {3189 this.$el.sortable( _.extend({ 3190 3190 // If the `collection` has a `comparator`, disable sorting. 3191 3191 disabled: !! collection.comparator, 3192 3192 … … 3231 3231 // update the menu order. 3232 3232 collection.saveMenuOrder(); 3233 3233 } 3234 } );3234 }, this.options.sortable ) ); 3235 3235 3236 3236 // If the `orderby` property is changed on the `collection`, 3237 3237 // check to see if we have a `comparator`. If so, disable sorting.