WP PLUGIN アーカイブページの投稿表示順設定
・不要な初期化を削除 ・カスタムタクソノミー対応 ・設定画面のタブ化 ・設定画面各タクソノミーの投稿リスト表示をメソッド化 ・name属性の閉じ忘れ修正 ・不要なreturn削除 ・APOP_UI::create_product_none_order_list() returnに変数が未設定の場合の条件を追加 ・readmeに若干加筆
This commit is contained in:
@@ -18,5 +18,15 @@ jQuery(function ($) {
|
||||
my_list.disableSelection();
|
||||
}
|
||||
|
||||
$('.post-order-nav li').click(function () {
|
||||
if (!$(this).hasClass('en')) {
|
||||
let target_index = $(this).index();
|
||||
$('.post-order-nav li').removeClass('en');
|
||||
$(this).addClass('en');
|
||||
$('.post-order-box').hide();
|
||||
$('.post-order-box:eq(' + target_index + ')').show();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user