WordPress.org

Make WordPress Core

Changeset 38793


Ignore:
Timestamp:
10/14/16 20:28:55 (7 months ago)
Author:
azaozz
Message:

Media modal: make it possible to reorder images by dragging on devices with both touch screen and mouse support.

Props adamsilverstein.
Fixes #31652.

Location:
trunk/src/wp-includes/js
Files:
2 edited

Legend:

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

    r38652 r38793  
    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        } 
     
    36483648 
    36493649    refreshSortable: function() { 
    3650         if ( wp.media.isTouchDevice || ! this.options.sortable || ! $.fn.sortable ) { 
     3650        if ( ! this.options.sortable || ! $.fn.sortable ) { 
    36513651            return; 
    36523652        } 
  • trunk/src/wp-includes/js/media/views/attachments.js

    r33337 r38793  
    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        } 
     
    216216 
    217217    refreshSortable: function() { 
    218         if ( wp.media.isTouchDevice || ! this.options.sortable || ! $.fn.sortable ) { 
     218        if ( ! this.options.sortable || ! $.fn.sortable ) { 
    219219            return; 
    220220        } 
Note: See TracChangeset for help on using the changeset viewer.