Make WordPress Core

Ticket #31652: 31652.diff

File 31652.diff, 1.4 KB (added by adamsilverstein, 8 years ago)
  • src/wp-includes/js/media/views/attachments.js

     
    156156        initSortable: function() {
    157157                var collection = this.collection;
    158158
    159                 if ( wp.media.isTouchDevice || ! this.options.sortable || ! $.fn.sortable ) {
     159                if ( ! this.options.sortable || ! $.fn.sortable ) {
    160160                        return;
    161161                }
    162162
     
    215215        },
    216216
    217217        refreshSortable: function() {
    218                 if ( wp.media.isTouchDevice || ! this.options.sortable || ! $.fn.sortable ) {
     218                if ( ! this.options.sortable || ! $.fn.sortable ) {
    219219                        return;
    220220                }
    221221
  • src/wp-includes/js/media-views.js

     
    35883588        initSortable: function() {
    35893589                var collection = this.collection;
    35903590
    3591                 if ( wp.media.isTouchDevice || ! this.options.sortable || ! $.fn.sortable ) {
     3591                if ( ! this.options.sortable || ! $.fn.sortable ) {
    35923592                        return;
    35933593                }
    35943594
     
    36473647        },
    36483648
    36493649        refreshSortable: function() {
    3650                 if ( wp.media.isTouchDevice || ! this.options.sortable || ! $.fn.sortable ) {
     3650                if ( ! this.options.sortable || ! $.fn.sortable ) {
    36513651                        return;
    36523652                }
    36533653