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

Props adamsilverstein.
Fixes #31652.

git-svn-id: https://develop.svn.wordpress.org/trunk@38793 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2016-10-14 20:28:55 +00:00
parent e9ef25d9f6
commit e93607c37f
2 changed files with 4 additions and 4 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;
}

View File

@ -156,7 +156,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;
}
@ -215,7 +215,7 @@ Attachments = View.extend({
},
refreshSortable: function() {
if ( wp.media.isTouchDevice || ! this.options.sortable || ! $.fn.sortable ) {
if ( ! this.options.sortable || ! $.fn.sortable ) {
return;
}