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:
parent
e9ef25d9f6
commit
e93607c37f
@ -3588,7 +3588,7 @@ Attachments = View.extend({
|
|||||||
initSortable: function() {
|
initSortable: function() {
|
||||||
var collection = this.collection;
|
var collection = this.collection;
|
||||||
|
|
||||||
if ( wp.media.isTouchDevice || ! this.options.sortable || ! $.fn.sortable ) {
|
if ( ! this.options.sortable || ! $.fn.sortable ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3647,7 +3647,7 @@ Attachments = View.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
refreshSortable: function() {
|
refreshSortable: function() {
|
||||||
if ( wp.media.isTouchDevice || ! this.options.sortable || ! $.fn.sortable ) {
|
if ( ! this.options.sortable || ! $.fn.sortable ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ Attachments = View.extend({
|
|||||||
initSortable: function() {
|
initSortable: function() {
|
||||||
var collection = this.collection;
|
var collection = this.collection;
|
||||||
|
|
||||||
if ( wp.media.isTouchDevice || ! this.options.sortable || ! $.fn.sortable ) {
|
if ( ! this.options.sortable || ! $.fn.sortable ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -215,7 +215,7 @@ Attachments = View.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
refreshSortable: function() {
|
refreshSortable: function() {
|
||||||
if ( wp.media.isTouchDevice || ! this.options.sortable || ! $.fn.sortable ) {
|
if ( ! this.options.sortable || ! $.fn.sortable ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user