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:
Andrew Ozz
2016-10-14 20:29:28 +00:00
parent 9783a3df6b
commit 2f45415c73
3 changed files with 6 additions and 6 deletions

View File

@@ -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;
}

File diff suppressed because one or more lines are too long