Media modal: make it possible to reorder images by dragging on devices with both touch screen and mouse support.
Props adamsilverstein. Fixes #31652. Built from https://develop.svn.wordpress.org/trunk@38793 git-svn-id: http://core.svn.wordpress.org/trunk@38736 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -3588,7 +3588,7 @@ Attachments = View.extend({
|
||||
initSortable: function() {
|
||||
var collection = this.collection;
|
||||
|
||||
if ( wp.media.isTouchDevice || ! this.options.sortable || ! $.fn.sortable ) {
|
||||
if ( ! this.options.sortable || ! $.fn.sortable ) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -3647,7 +3647,7 @@ Attachments = View.extend({
|
||||
},
|
||||
|
||||
refreshSortable: function() {
|
||||
if ( wp.media.isTouchDevice || ! this.options.sortable || ! $.fn.sortable ) {
|
||||
if ( ! this.options.sortable || ! $.fn.sortable ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
6
wp-includes/js/media-views.min.js
vendored
6
wp-includes/js/media-views.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user