From ada1e0eadf0ecc755de102269d4dca10705a9c6d Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 30 Jun 2021 11:01:07 +0900 Subject: [PATCH] WP PLUGIN APOP add jQuery-Sortable for Touch Device --- .gitignore | 2 ++ archive-post-order-plus.php | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..47c68d4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/.idea/vcs.xml +/.idea/workspace.xml diff --git a/archive-post-order-plus.php b/archive-post-order-plus.php index 124f371..ebdf7e4 100644 --- a/archive-post-order-plus.php +++ b/archive-post-order-plus.php @@ -42,6 +42,9 @@ function apop_register_my_styles() { wp_enqueue_script( 'jquery-ui-sortable' ); wp_enqueue_script( 'jquery-ui-autocomplete' ); wp_enqueue_script( 'post-sort-cat-order_js', APOP_PLUGIN_URL . 'js/apop-style.js' ); + if ( wp_is_mobile() ) { + wp_enqueue_script( 'jquery-touch-punch' ); + } } $APOP->set_query();